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 "