]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nickflood.cpp
Add RAWIO log level which is more verbose than DEBUG
[user/henk/code/inspircd.git] / src / modules / m_nickflood.cpp
index e4f12c7bc4e7a5f9b2b75eebc30453d04b44da13..708d30e6beee622155de397b8c964a2f2f6def2b 100644 (file)
@@ -198,7 +198,7 @@ class ModuleNickFlood : public Module
 
        ModResult OnUserPreNick(User* user, const std::string &newnick)
        {
-               if (isdigit(newnick[0])) /* allow switches to UID */
+               if (ServerInstance->NICKForced.get(user)) /* Allow forced nick changes */
                        return MOD_RES_PASSTHRU;
 
                for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
@@ -209,7 +209,7 @@ class ModuleNickFlood : public Module
                        nickfloodsettings *f = nf.ext.get(channel);
                        if (f)
                        {
-                               FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (user,channel,"nickflood"));
+                               res = ServerInstance->OnCheckExemption(user,channel,"nickflood");
                                if (res == MOD_RES_ALLOW)
                                        continue;
 
@@ -248,7 +248,7 @@ class ModuleNickFlood : public Module
                        nickfloodsettings *f = nf.ext.get(channel);
                        if (f)
                        {
-                               FIRST_MOD_RESULT(OnChannelRestrictionApply, res, (user,channel,"nickflood"));
+                               res = ServerInstance->OnCheckExemption(user,channel,"nickflood");
                                if (res == MOD_RES_ALLOW)
                                        return;