mirror of
https://github.com/znc/znc.git
synced 2026-05-07 22:04:46 +02:00
autoreply: check if the network is attached instead of the user
This fixes a bug where the autoreply message wasn't being sent if you were attached to another network Also allow loading this module as a network module
This commit is contained in:
@@ -56,7 +56,7 @@ public:
|
||||
if (m_Messaged.HasItem(sNick))
|
||||
return;
|
||||
|
||||
if (m_pUser->IsUserAttached())
|
||||
if (m_pNetwork->IsUserAttached())
|
||||
return;
|
||||
|
||||
m_Messaged.AddItem(sNick);
|
||||
@@ -95,6 +95,7 @@ private:
|
||||
|
||||
template<> void TModInfo<CAutoReplyMod>(CModInfo& Info) {
|
||||
Info.SetWikiPage("autoreply");
|
||||
Info.AddType(CModInfo::NetworkModule);
|
||||
}
|
||||
|
||||
MODULEDEFS(CAutoReplyMod, "Reply to queries when you are away")
|
||||
|
||||
Reference in New Issue
Block a user