long gotoroom(const StrBuf *gname)
{
StrBuf *Buf;
- char buf[SIZ];
static long ls = (-1L);
long err = 0;
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