From: Wilfried Göesgens Date: Fri, 9 Jan 2009 17:31:42 +0000 (+0000) Subject: ! fix bug with gotoroom introduced in the last version. Thanks Matt for pointing... X-Git-Tag: v7.86~1636 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=129675acd5ebbf46f9116ae3d7ea0a47c5e68d8f;p=citadel.git ! fix bug with gotoroom introduced in the last version. Thanks Matt for pointing me there. --- 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