Only save a buffer in buffextras if no clients are "away"

This commit is contained in:
Kyle Fuller
2011-10-18 22:12:43 +00:00
parent 0a56a0281b
commit 9c86f08b82
+2 -1
View File
@@ -8,6 +8,7 @@
#include <znc/Chan.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/Modules.h>
class CBuffExtras : public CModule {
@@ -18,7 +19,7 @@ public:
void AddBuffer(CChan& Channel, const CString& sMessage) {
// If they have keep buffer disabled, only add messages if no client is connected
if (!Channel.KeepBuffer() && m_pUser->IsUserOnline())
if (!Channel.KeepBuffer() && m_pNetwork->IsUserOnline())
return;
CString s = ":" + GetModNick() + "!" + GetModName() + "@znc.in PRIVMSG "