should not. Fixed.
$Log$
+ Revision 605.6 2003/03/01 18:18:03 ajc
+ * commands.c: alternate_semantics might have been getting set where it
+ should not. Fixed.
+
Revision 605.5 2003/03/01 17:25:33 ajc
* citadel.rc default for alternate_semantics = no
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
* If it is, pop the first room off the list and go there.
*/
if (march == NULL) {
- r = CtdlIPCKnownRooms(ipc, SubscribedRoomsWithNewMessages, AllFloors, &march, buf);
+ r = CtdlIPCKnownRooms(ipc, SubscribedRoomsWithNewMessages,
+ AllFloors, &march, buf);
+
/* add _BASEROOM_ to the end of the march list, so the user will end up
* in the system base room (usually the Lobby>) at the end of the loop
*/
set_floor_mode();
-
/* Enter the lobby */
dotgoto(ipc, "_BASEROOM_", 1, 0);
else
entmsg(ipc, 0, 0);
break;
- case 5:
+ case 5: /* <G>oto */
updatels(ipc);
gotonext(ipc);
break;
- case 47:
- if (!rc_alt_semantics)
+ case 47: /* <A>bandon */
+ if (!rc_alt_semantics) {
updatelsa(ipc);
+ }
gotonext(ipc);
break;
- case 90:
+ case 90: /* <.A>bandon */
if (!rc_alt_semantics)
updatelsa(ipc);
dotgoto(ipc, argbuf, 0, 0);
break;
- case 58:
+ case 58: /* <M>ail */
updatelsa(ipc);
dotgoto(ipc, "_MAIL_", 1, 0);
break;
break;
case 6:
- if (rc_alt_semantics)
+ if (rc_alt_semantics) {
updatelsa(ipc);
+ }
gotonext(ipc);
break;
if (!cret) return -2;
- if (msgnum)
+ if (msgnum) {
sprintf(aaa, "SLRP %ld", msgnum);
- else
+ }
+ else {
sprintf(aaa, "SLRP HIGHEST");
+ }
ret = CtdlIPCGenericCommand(ipc, aaa, NULL, 0, NULL, NULL, cret);
return ret;
}
strcpy(rc_gotmail_cmd, &buf[11]);
if (!strncasecmp(buf, "alternate_semantics=", 20)) {
- if (!strncasecmp(&buf[11], "yes", 3))
+ if (!strncasecmp(&buf[20], "yes", 3)) {
rc_alt_semantics = 1;
- if (!strncasecmp(&buf[11], "no", 2))
+ }
+ else {
rc_alt_semantics = 0;
+ }
}
if (!strncasecmp(buf, "cmd=", 4)) {
strcpy(buf, &buf[4]);
if (rc_alt_semantics) {
if (maxmsgnum == highest_msg_read == 0) {
- /* err_printf("maxmsgnum == highest_msg_read == 0\n"); */
return;
}
r = CtdlIPCSetLastRead(ipc, (maxmsgnum > highest_msg_read) ?