From: Wilfried Göesgens Date: Tue, 10 Aug 2010 19:27:11 +0000 (+0000) Subject: * embed_room_banner() remove own goto code, use the api function instead. X-Git-Tag: v8.01~938 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=b212124c4fe6aded9b574dfc50e866bb3fbbab48 * embed_room_banner() remove own goto code, use the api function instead. --- diff --git a/webcit/roomops.c b/webcit/roomops.c index 1b7925641..d63bfdd96 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -258,22 +258,13 @@ void zapped_list(void) * */ -void embed_room_banner(char *got) +void embed_room_banner(void) { wcsession *WCC = WC; char buf[256]; - - /* - * We need to have the information returned by a GOTO server command. - * If it isn't supplied, we fake it by issuing our own GOTO. - */ - if (got == NULL) { - memset(buf, '0', 20); - buf[20] = '\0'; - serv_printf("GOTO %s", ChrPtr(WC->CurRoom.name)); - serv_getln(buf, sizeof buf); - got = buf; - } + + /* refresh current room states... */ + gotoroom(NULL); /* The browser needs some information for its own use */ wc_printf("