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:
1 parent
9bb57639e1
commit
ecc5973aed
2 files changed
+15
-7
No files matched your search
@@ -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