]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nicklock.cpp
Whoops, allow numeric 353 (names list) to be overridden by OnNumeric if we want to
[user/henk/code/inspircd.git] / src / modules / m_nicklock.cpp
index 24d319ca887432d24814febb26be8152a4b7873c..090481d06e8050cf74fd8eadc329c4453022dd74 100644 (file)
@@ -43,7 +43,7 @@ class CommandNicklock : public Command
                // check if user is locked
                if (target->GetExt("nick_locked", dummy))
                {
-                       user->WriteServ("946 %s %s :This user's nickname is already locked.",user->nick,target->nick);
+                       user->WriteNumeric(946, "%s %s :This user's nickname is already locked.",user->nick,target->nick);
                        return CMD_FAILURE;
                }
 
@@ -87,7 +87,7 @@ class CommandNickunlock : public Command
                if (target)
                {
                        target->Shrink("nick_locked");
-                       user->WriteServ("945 %s %s :Nickname now unlocked.",user->nick,target->nick);
+                       user->WriteNumeric(945, "%s %s :Nickname now unlocked.",user->nick,target->nick);
                        ServerInstance->SNO->WriteToSnoMask('A', std::string(user->nick)+" used NICKUNLOCK on "+parameters[0]);
                        return CMD_SUCCESS;
                }
@@ -121,7 +121,7 @@ class ModuleNickLock : public Module
        
        virtual Version GetVersion()
        {
-               return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
+               return Version(1, 2, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
        }
 
 
@@ -132,7 +132,7 @@ class ModuleNickLock : public Module
 
                if (user->GetExt("nick_locked", n))
                {
-                       user->WriteServ("447 %s :You cannot change your nickname (your nick is locked)",user->nick);
+                       user->WriteNumeric(447, "%s :You cannot change your nickname (your nick is locked)",user->nick);
                        return 1;
                }
                return 0;