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:
psychon
2009-09-04 12:25:05 +00:00
parent 9bb57639e1
commit ecc5973aed
2 changed files with 15 additions and 7 deletions

View File

@@ -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;