summaryrefslogtreecommitdiff
path: root/src/modules/m_nonicks.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-15 13:16:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-15 13:16:33 +0000
commita1ecc3014a2a218751505a1ea9b34bf7aa47f9a5 (patch)
treeff92eef46c16f50600e6c2033e19c037f818ea8f /src/modules/m_nonicks.cpp
parent5b639d8e57e42922b51998085ffe368f4a9f9ff1 (diff)
Added ability for (H)OP to still change nick on +N channel
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@814 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nonicks.cpp')
-rw-r--r--src/modules/m_nonicks.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp
index d46525152..6328e5ee2 100644
--- a/src/modules/m_nonicks.cpp
+++ b/src/modules/m_nonicks.cpp
@@ -37,9 +37,10 @@ class ModuleNoNickChange : public Module
if (user->chans[i].channel != NULL)
{
chanrec* curr = user->chans[i].channel;
- if (curr->IsCustomModeSet('N'))
+ if ((curr->IsCustomModeSet('N')) && (user->chans[i].uc_modes < STATUS_HOP))
{
// don't allow the nickchange, theyre on at least one channel with +N set
+ // and theyre not a (H)OP on the channel
WriteServ(user->fd,"447 %s :Can't change nickname while on %s (+N is set)",user->nick,curr->name);
return 1;
}