summaryrefslogtreecommitdiff
path: root/src/cmd_kill.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_kill.cpp')
-rw-r--r--src/cmd_kill.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp
index 2143451b3..bf596ee2b 100644
--- a/src/cmd_kill.cpp
+++ b/src/cmd_kill.cpp
@@ -32,16 +32,16 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
char killreason[MAXBUF];
int MOD_RESULT = 0;
- log(DEBUG,"kill: %s %s", parameters[0], parameters[1]);
+ ServerInstance->Log(DEBUG,"kill: %s %s", parameters[0], parameters[1]);
if (u)
{
- log(DEBUG, "into kill mechanism");
+ ServerInstance->Log(DEBUG, "into kill mechanism");
FOREACH_RESULT(I_OnKill, OnKill(user, u, parameters[1]));
if (MOD_RESULT)
{
- log(DEBUG, "A module prevented the kill with result %d", MOD_RESULT);
+ ServerInstance->Log(DEBUG, "A module prevented the kill with result %d", MOD_RESULT);
return;
}
@@ -57,7 +57,7 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
if (iter != ServerInstance->clientlist.end())
{
- log(DEBUG,"deleting user hash value %d", iter->second);
+ ServerInstance->Log(DEBUG,"deleting user hash value %d", iter->second);
ServerInstance->clientlist.erase(iter);
}
@@ -71,7 +71,7 @@ void cmd_kill::Handle (const char** parameters, int pcnt, userrec *user)
else
{
// local kill
- log(DEFAULT,"LOCAL KILL: %s :%s!%s!%s (%s)", u->nick, ServerInstance->Config->ServerName, user->dhost, user->nick, parameters[1]);
+ ServerInstance->Log(DEFAULT,"LOCAL KILL: %s :%s!%s!%s (%s)", u->nick, ServerInstance->Config->ServerName, user->dhost, user->nick, parameters[1]);
user->WriteTo(u, "KILL %s :%s!%s!%s (%s)", u->nick, ServerInstance->Config->ServerName, user->dhost, user->nick, parameters[1]);
ServerInstance->WriteOpers("*** Local Kill by %s: %s!%s@%s (%s)", user->nick, u->nick, u->ident, u->host, parameters[1]);
snprintf(killreason,MAXQUIT,"Killed (%s (%s))", user->nick, parameters[1]);