diff options
-rw-r--r-- | src/modules/m_nonicks.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index d03e2455e..ef93867df 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -83,7 +83,8 @@ class ModuleNoNickChange : public Module for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++) { chanrec* curr = i->first; - if ((curr->IsModeSet('N')) && (!IS_OPER(user))) + + if (curr->IsModeSet('N')) { // don't allow the nickchange, theyre on at least one channel with +N set // and theyre not an oper |