From: Wilfried Göesgens Date: Mon, 22 Jun 2009 21:03:05 +0000 (+0000) Subject: * in gotonext etc. check for the availability of parameters/absence of needed paramet... X-Git-Tag: v7.86~1016 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=db472cf1a64d3e8a6411ed74770d43c82355ae22;p=citadel.git * in gotonext etc. check for the availability of parameters/absence of needed parameters and fallback to readnew --- diff --git a/webcit/roomops.c b/webcit/roomops.c index ed90e01fa..63ec7a0da 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -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(); }