summaryrefslogtreecommitdiff
path: root/src/modules/m_nonicks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r--src/modules/m_nonicks.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index 22b0067cc..3e378d59f 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -85,7 +85,10 @@ class ModuleNoNickChange : public Module
{
Channel* curr = *i;
- if (CHANOPS_EXEMPT('N') && curr->GetPrefixValue(user) == OP_VALUE)
+ ModResult res;
+ FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (curr->GetUser(user),curr,"nonick"));
+
+ if (res == MOD_RES_ALLOW)
continue;
if (!curr->GetExtBanStatus(user, 'N').check(!curr->IsModeSet('N')))