diff options
author | Peter Powell <petpow@saberuk.com> | 2019-09-16 12:22:28 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-09-16 12:23:08 +0100 |
commit | c05f1fee8a1a8991107ff2d00a9153e33c4d51ed (patch) | |
tree | 137d6263f927c0237a8918bcde24c34b6469cd79 | |
parent | 6a0155101e09ecf48858d73dab17400777cbe668 (diff) |
Fix the noctcp user mode not applying to channel CTCPs.
Closes #1704.
-rw-r--r-- | src/modules/m_noctcp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_noctcp.cpp b/src/modules/m_noctcp.cpp index f288820b8..475151cb7 100644 --- a/src/modules/m_noctcp.cpp +++ b/src/modules/m_noctcp.cpp @@ -78,6 +78,14 @@ class ModuleNoCTCP : public Module user->WriteNumeric(ERR_CANNOTSENDTOCHAN, c->name, "Can't send CTCP to channel (+C is set)"); return MOD_RES_DENY; } + + const Channel::MemberMap& members = c->GetUsers(); + for (Channel::MemberMap::const_iterator member = members.begin(); member != members.end(); ++member) + { + User* u = member->first; + if (u->IsModeSet(ncu)) + details.exemptions.insert(u); + } break; } case MessageTarget::TYPE_USER: |