From 68730d4c9701b34c962302e6410908865fb2ba28 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 22 Mar 2008 12:03:43 +0000 Subject: 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 --- src/modules/m_silence.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/modules/m_silence.cpp') diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 9361b9a67..c55ee4dfd 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.cpp @@ -45,10 +45,10 @@ class CommandSilence : public Command { for (silencelist::const_iterator c = sl->begin(); c != sl->end(); c++) { - user->WriteServ("271 %s %s %s :%lu",user->nick, user->nick, c->first.c_str(), (unsigned long)c->second); + user->WriteNumeric(271, "%s %s %s :%lu",user->nick, user->nick, c->first.c_str(), (unsigned long)c->second); } } - user->WriteServ("272 %s :End of Silence List",user->nick); + user->WriteNumeric(272, "%s :End of Silence List",user->nick); return CMD_SUCCESS; } @@ -78,7 +78,7 @@ class CommandSilence : public Command if (i != sl->end()) { sl->erase(i); - user->WriteServ("950 %s %s :Removed %s from silence list",user->nick, user->nick, mask.c_str()); + user->WriteNumeric(950, "%s %s :Removed %s from silence list",user->nick, user->nick, mask.c_str()); if (!sl->size()) { // tidy up -- if a user's list is empty, theres no use having it @@ -88,7 +88,7 @@ class CommandSilence : public Command } } else - user->WriteServ("952 %s %s :%s does not exist on your silence list",user->nick, user->nick, mask.c_str()); + user->WriteNumeric(952, "%s %s :%s does not exist on your silence list",user->nick, user->nick, mask.c_str()); } } else if (action == '+') @@ -105,16 +105,16 @@ class CommandSilence : public Command silencelist::iterator n = sl->find(mask.c_str()); if (n != sl->end()) { - user->WriteServ("952 %s %s :%s is already on your silence list",user->nick, user->nick, mask.c_str()); + user->WriteNumeric(952, "%s %s :%s is already on your silence list",user->nick, user->nick, mask.c_str()); return CMD_FAILURE; } if (sl->size() >= maxsilence) { - user->WriteServ("952 %s %s :Your silence list is full",user->nick, user->nick, mask.c_str()); + user->WriteNumeric(952, "%s %s :Your silence list is full",user->nick, user->nick, mask.c_str()); return CMD_FAILURE; } sl->insert(std::make_pair(mask.c_str(), ServerInstance->Time())); - user->WriteServ("951 %s %s :Added %s to silence list",user->nick, user->nick, mask.c_str()); + user->WriteNumeric(951, "%s %s :Added %s to silence list",user->nick, user->nick, mask.c_str()); return CMD_SUCCESS; } } -- cgit v1.2.3