mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
savebuff: Honour the KeepBuffer setting
Before this, savebuff also added messages if a client was connected and a channel had KeepBuffer = false which is obviously wrong. Thanks to _marix for reporting this. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1616 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -17,7 +17,7 @@ public:
|
||||
virtual ~CBuffExtras() {}
|
||||
|
||||
void AddBuffer(CChan& Channel, const CString& sMessage) {
|
||||
// If they have keep buffer disabled, only add messages if a client is connected
|
||||
// If they have keep buffer disabled, only add messages if no client is connected
|
||||
if (!Channel.KeepBuffer() && m_pUser->IsUserAttached())
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user