Don't require network for OnUserXxxMessage() hooks

- OnUserJoinMessage()
- OnUserPartMessage()
- OnUserTopicMessage()
- OnUserActionMessage()
- OnUserCTCPMessage()

Supersedes #503
This commit is contained in:
J-P Nurmi
2015-09-02 01:12:10 +02:00
parent 491fb50045
commit 81e6d0bbf2
2 changed files with 22 additions and 18 deletions
+4
View File
@@ -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))