+Mon May 10 23:09:34 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
+ * Replaced _most_ gotoroom() calls with smart_goto(), a version
+ which can differentiate the needs of frames and noframes modes
+
Sat May 8 01:07:06 EDT 1999 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* webserver.c: added "-t" option to send traces somewhere else
wprintf("<A HREF=\"/dotgoto&room=");
urlescputs(rmname);
- wprintf("\" TARGET=\"top\">");
+ wprintf("\"");
+ if (!noframes) wprintf("TARGET=\"top\"");
+ wprintf(">");
escputs1(rmname, 1);
if ((f & QR_DIRECTORY) && (f & QR_NETWORK))
wprintf("}");
strcpy(next_room, "_BASEROOM_");
}
+
+ smart_goto(next_room);
+}
+
+
+void smart_goto(char *next_room) {
/* In noframes mode, we goto the room silently, then do a
* read-new-messages which causes the banner to show up anyway.
*/
char buf[256];
if (!strcmp(ugname, "")) {
- gotoroom(wc_roomname, 1);
+ smart_goto(wc_roomname);
return;
}
serv_printf("GOTO %s", ugname);
serv_gets(buf);
if (buf[0] != '2') {
- gotoroom(wc_roomname, 1);
+ smart_goto(wc_roomname);
return;
}
if (uglsn >= 0L) {
}
strcpy(buf, ugname);
strcpy(ugname, "");
- gotoroom(buf, 1);
+ smart_goto(buf);
}
/*
return;
}
}
- gotoroom(er_name, 1);
+ smart_goto(er_name);
}
display_error(&buf[4]);
return;
}
- gotoroom(er_name, 1);
+ smart_goto(er_name);
}
serv_gets(buf);
if (buf[0] == '2') {
- gotoroom(bstr("gr_name"), 1);
+ smart_goto(bstr("gr_name"));
return;
}
if (!strncmp(buf, "540", 3)) {
display_error(&buf[4]);
return;
}
- gotoroom(bstr("_BASEROOM_"), 1);
+ smart_goto(bstr("_BASEROOM_"));
}
if (buf[0] != '2') {
display_error(&buf[4]);
} else {
- gotoroom("_BASEROOM_", 1);
+ smart_goto("_BASEROOM_");
}
}
ungoto();
} else if (!strcasecmp(action, "dotgoto")) {
slrp_highest();
- gotoroom(bstr("room"), 1);
+ smart_goto(bstr("room"));
} else if (!strcasecmp(action, "termquit")) {
do_logout();
} else if (!strcasecmp(action, "readnew")) {