X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fwebcit.c;h=519a18e0dc6a9cc2f3dd7b9202d90a05ec8863e6;hp=22bd92a99f87051e8fade0f53db3c3c003ed947b;hb=dd35736bbee921049196fd492a08b6a0de85eb15;hpb=39ac058a06bd8d22ce0754389e56307b227717ba diff --git a/webcit/webcit.c b/webcit/webcit.c index 22bd92a99..519a18e0d 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -863,7 +863,6 @@ void tmplput_importantmessage(StrBuf *Target, WCTemplputParams *TP) if (WCC != NULL) { if (StrLength(WCC->ImportantMsg) > 0) { StrEscAppend(Target, WCC->ImportantMsg, NULL, 0, 0); - FlushStrBuf(WCC->ImportantMsg); } } } @@ -973,6 +972,10 @@ SessionDetachModule_WEBCIT else FlushStrBuf(sess->WBuf); FlushStrBuf(sess->HBuf); + if (StrLength(sess->ImportantMsg) > 0) { + FlushStrBuf(sess->ImportantMsg); + } + } void