Permalink
Browse files

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

  • Loading branch information...
1 parent 0a56a02 commit 9c86f08b82f58bfd3591e0c07968c53a8a8c91a6 @kylef kylef committed Oct 18, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 modules/buffextras.cpp
View
@@ -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 @@ class CBuffExtras : public CModule {
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 "

0 comments on commit 9c86f08

Please sign in to comment.