mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user