From 129675acd5ebbf46f9116ae3d7ea0a47c5e68d8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 9 Jan 2009 17:31:42 +0000 Subject: [PATCH] ! fix bug with gotoroom introduced in the last version. Thanks Matt for pointing me there. --- webcit/roomops.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/webcit/roomops.c b/webcit/roomops.c index 5efd7109a..4d1414937 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -755,7 +755,6 @@ void embed_room_banner(char *got, int navbar_style) { long gotoroom(const StrBuf *gname) { StrBuf *Buf; - char buf[SIZ]; static long ls = (-1L); long err = 0; @@ -767,13 +766,14 @@ long gotoroom(const StrBuf *gname) serv_printf("GOTO %s", ChrPtr(gname)); StrBuf_ServGetln(Buf); if (GetServerStatus(Buf, &err) != 2) { - FreeStrBuf(&Buf); - return err; + serv_puts("GOTO _BASEROOM_"); + StrBuf_ServGetln(Buf); + if (GetServerStatus(Buf, &err) != 2) { + FreeStrBuf(&Buf); + return err; + } } - serv_puts("GOTO _BASEROOM_"); - serv_getln(buf, sizeof buf); - if (WC->wc_roomname == NULL) WC->wc_roomname = NewStrBuf(); else -- 2.39.2