From 9c86f08b82f58bfd3591e0c07968c53a8a8c91a6 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Tue, 18 Oct 2011 22:12:43 +0000 Subject: [PATCH] Only save a buffer in buffextras if no clients are "away" --- modules/buffextras.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/buffextras.cpp b/modules/buffextras.cpp index 1fa316e5..5d992fca 100644 --- a/modules/buffextras.cpp +++ b/modules/buffextras.cpp @@ -8,6 +8,7 @@ #include #include +#include #include 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 "