diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-26 17:28:25 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-09-26 17:28:25 +0000 |
commit | 7c1352df0c8bb2624d4f2cc8320467578c39a6ad (patch) | |
tree | 95a8b7aed3e46aa13f669fa2badcb6a6cbbece1f /src/modules/m_close.cpp | |
parent | 7107ec12d8640d35cfe3d5002db1bc1deb33625d (diff) |
Compile fixes and message updates
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11767 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_close.cpp')
-rw-r--r-- | src/modules/m_close.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_close.cpp b/src/modules/m_close.cpp index 1cddc5012..a2e9692cd 100644 --- a/src/modules/m_close.cpp +++ b/src/modules/m_close.cpp @@ -33,7 +33,7 @@ class CommandClose : public Command { flags_needed = 'o'; } - CmdResult Handle (const std::vector<std::string> ¶meters, User *user) + CmdResult Handle (const std::vector<std::string> ¶meters, User *src) { std::map<std::string,int> closed; @@ -52,13 +52,13 @@ class CommandClose : public Command int total = 0; for (std::map<std::string,int>::iterator ci = closed.begin(); ci != closed.end(); ci++) { - user->WriteServ("NOTICE %s :*** Closed %d unknown connection%s from [%s]",user->nick.c_str(),(*ci).second,((*ci).second>1)?"s":"",(*ci).first.c_str()); + src->WriteServ("NOTICE %s :*** Closed %d unknown connection%s from [%s]",src->nick.c_str(),(*ci).second,((*ci).second>1)?"s":"",(*ci).first.c_str()); total += (*ci).second; } if (total) - user->WriteServ("NOTICE %s :*** %i unknown connection%s closed",user->nick.c_str(),total,(total>1)?"s":""); + src->WriteServ("NOTICE %s :*** %i unknown connection%s closed",src->nick.c_str(),total,(total>1)?"s":""); else - user->WriteServ("NOTICE %s :*** No unknown connections found",user->nick.c_str()); + src->WriteServ("NOTICE %s :*** No unknown connections found",src->nick.c_str()); return CMD_SUCCESS; } |