* in gotonext etc. check for the availability of parameters/absence of needed paramet...
authorWilfried Göesgens <willi@citadel.org>
Mon, 22 Jun 2009 21:03:05 +0000 (21:03 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 22 Jun 2009 21:03:05 +0000 (21:03 +0000)
webcit/roomops.c

index ed90e01fac27ce2aeac99981611c53e640689146..63ec7a0da39daea015677729f3f9b618fcc7a296 100644 (file)
@@ -920,6 +920,10 @@ void gotonext(void)
         * First check to see if the march-mode list is already allocated.
         * If it is, pop the first room off the list and go there.
         */
+       if (havebstr("startmsg")) {
+                readloop(readnew);
+                return;
+       }
 
        if (WC->march == NULL) {
                serv_puts("LKRN");
@@ -1013,6 +1017,11 @@ void ungoto(void)
 {
        StrBuf *Buf;
 
+       if (havebstr("startmsg")) {
+               readloop(readnew);
+               return;
+       }
+
        if (!strcmp(WC->ugname, "")) {
                smart_goto(WC->wc_roomname);
                return;
@@ -3891,6 +3900,10 @@ void _display_private(void) {
 }
 
 void dotgoto(void) {
+       if (!havebstr("room")) {
+               readloop(readnew);
+               return;
+       }
        if (WC->wc_view != VIEW_MAILBOX) {      /* dotgoto acts like dotskip when we're in a mailbox view */
                slrp_highest();
        }