]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonicks.cpp
Prevent setting mode -H if already unset, bug #74
[user/henk/code/inspircd.git] / src / modules / m_nonicks.cpp
index 5fa5c322719d35e5084a8592ec05dc15aa21c4e7..7a6d3ffd07c51207b8eee148c5a3374380164e06 100644 (file)
@@ -76,9 +76,6 @@ class ModuleNoNickChange : public Module
                if (!IS_LOCAL(user))
                        return MOD_RES_PASSTHRU;
 
-               if (isdigit(newnick[0])) /* don't even think about touching a switch to uid! */
-                       return MOD_RES_PASSTHRU;
-
                // Allow forced nick changes.
                if (ServerInstance->NICKForced.get(user))
                        return MOD_RES_PASSTHRU;
@@ -87,8 +84,7 @@ class ModuleNoNickChange : public Module
                {
                        Channel* curr = *i;
 
-                       ModResult res;
-                       FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (user,curr,"nonick"));
+                       ModResult res = ServerInstance->OnCheckExemption(user,curr,"nonick");
 
                        if (res == MOD_RES_ALLOW)
                                continue;