From: Wilfried Goesgens Date: Sun, 8 Jul 2012 17:30:11 +0000 (+0200) Subject: ImportantMessage: flush on session detach, not on first print; else we might not... X-Git-Tag: v8.13~17 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=dd35736bbee921049196fd492a08b6a0de85eb15 ImportantMessage: flush on session detach, not on first print; else we might not have it for later use. --- 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