From 1635c37dadd8650a7d3ee27a0c003c4e30f1ec4e Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 16 May 2007 10:47:45 +0000 Subject: Tidy logic a little in here, and support git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7033 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_nonicks.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/m_nonicks.cpp') diff --git a/src/modules/m_nonicks.cpp b/src/modules/m_nonicks.cpp index ef93867df..103d07c2a 100644 --- a/src/modules/m_nonicks.cpp +++ b/src/modules/m_nonicks.cpp @@ -86,13 +86,15 @@ class ModuleNoNickChange : public Module if (curr->IsModeSet('N')) { - // don't allow the nickchange, theyre on at least one channel with +N set - // and theyre not an oper + if (CHANOPS_EXEMPT(ServerInstance, 'N') && curr->GetStatus(user) == STATUS_OP) + continue; + user->WriteServ("447 %s :Can't change nickname while on %s (+N is set)", user->nick, curr->name); return 1; } } } + return 0; } }; -- cgit v1.2.3