diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-22 12:03:43 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-03-22 12:03:43 +0000 |
commit | 68730d4c9701b34c962302e6410908865fb2ba28 (patch) | |
tree | dfa6b0b1d79bfd894ab75d0415e054b54ff2d850 /src/modules/m_nicklock.cpp | |
parent | 9ee525bec55521e9d911df40c2d8ca8b0212ee22 (diff) |
Wheeee for HUGE commits. Convert all numerics to WriteNumeric so that OnNumeric can capture them.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9175 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_nicklock.cpp')
-rw-r--r-- | src/modules/m_nicklock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index 24d319ca8..45a9d0ed4 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -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; } @@ -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; |