From 36821734e42c9200de69079d314b71c5a6b5526e Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Sun, 21 Nov 2010 18:48:01 +0100 Subject: [PATCH] avoid calling GETR for the number of total/read messages so far webcit used a call of GETR to retrieve the number of messages available in the current room for displaying the room banner. However, GOTO already gave us this information, and GETR is only available for aides, so we got Important messages with that error when logged in as joe average. This went under the radar for quiet a while, since the error message wasn't printed but silently ignored. --- webcit/roomtokens.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/webcit/roomtokens.c b/webcit/roomtokens.c index 884cd63f9..0e632365f 100644 --- a/webcit/roomtokens.c +++ b/webcit/roomtokens.c @@ -384,8 +384,6 @@ void tmplput_ThisRoom_nNewMessages(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; - LoadRoomXA(); - StrBufAppendPrintf(Target, "%d", WCC->CurRoom.nNewMessages); } @@ -393,8 +391,6 @@ void tmplput_ThisRoom_nTotalMessages(StrBuf *Target, WCTemplputParams *TP) { wcsession *WCC = WC; - LoadRoomXA(); - StrBufAppendPrintf(Target, "%d", WCC->CurRoom.nTotalMessages); } -- 2.30.2