From db472cf1a64d3e8a6411ed74770d43c82355ae22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Mon, 22 Jun 2009 21:03:05 +0000 Subject: [PATCH] * in gotonext etc. check for the availability of parameters/absence of needed parameters and fallback to readnew --- webcit/roomops.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(); } -- 2.39.2