From b212124c4fe6aded9b574dfc50e866bb3fbbab48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 10 Aug 2010 19:27:11 +0000 Subject: [PATCH] * embed_room_banner() remove own goto code, use the api function instead. --- webcit/roomops.c | 525 +++++++++++++++++++++++------------------------ webcit/webcit.c | 2 +- webcit/webcit.h | 3 +- 3 files changed, 262 insertions(+), 268 deletions(-) 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("