mirror of
https://github.com/znc/znc.git
synced 2026-07-04 17:01:23 +02:00
Don't require network for OnUserXxxMessage() hooks
- OnUserJoinMessage() - OnUserPartMessage() - OnUserTopicMessage() - OnUserActionMessage() - OnUserCTCPMessage() Supersedes #503
This commit is contained in:
@@ -36,6 +36,10 @@ public:
|
||||
|
||||
EModRet OnUserPart(CString& sChannel, CString& sMessage) override
|
||||
{
|
||||
if (!GetNetwork()) {
|
||||
return CONTINUE;
|
||||
}
|
||||
|
||||
for (MCString::iterator it = BeginNV(); it != EndNV(); ++it)
|
||||
{
|
||||
if (sChannel.Equals(it->first))
|
||||
|
||||
Reference in New Issue
Block a user