Allow a client to become "away"

The result of CIRCNetwork::IsUserOnline() will only show clients which
do not have the away state set. This value is not set from the IRC
command AWAY, but a future module could use this behaviour.

Some CIRCNetwork::IsUserAttached() checks are now moved into of
CIRCNetwork::IsUserOnline() checks.

This allows "away" clients to store buffer even if KeepBuffer is false.
This commit is contained in:
Kyle Fuller
2011-10-02 18:37:20 +00:00
parent 6ae491ca66
commit bce4e60c08
5 changed files with 25 additions and 8 deletions

View File

@@ -18,7 +18,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->IsUserAttached())
if (!Channel.KeepBuffer() && m_pUser->IsUserOnline())
return;
CString s = ":" + GetModNick() + "!" + GetModName() + "@znc.in PRIVMSG "