]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nonicks.cpp
Fix previous module mismatch message; "remote" is misleading when sent as an ERROR
[user/henk/code/inspircd.git] / src / modules / m_nonicks.cpp
index a7f7b142f996d6f974a2f14e0a25af3e11cdb2cd..14957759c6b4c8f5be6ce0a4fbb87ff52bc03164 100644 (file)
@@ -81,6 +81,10 @@ class ModuleNoNickChange : public Module
                if (isdigit(newnick[0])) /* don't even think about touching a switch to uid! */
                        return 0;
 
+               // Allow forced nick changes.
+               if (user->GetExt("NICKForced"))
+                       return 0;
+
                for (UCListIter i = user->chans.begin(); i != user->chans.end(); i++)
                {
                        Channel* curr = i->first;