summaryrefslogtreecommitdiff
path: root/src/cmd_restart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_restart.cpp')
-rw-r--r--src/cmd_restart.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_restart.cpp b/src/cmd_restart.cpp
index 81c45386f..318a8ee31 100644
--- a/src/cmd_restart.cpp
+++ b/src/cmd_restart.cpp
@@ -28,7 +28,7 @@ void cmd_restart::Handle (const char** parameters, int pcnt, userrec *user)
log(DEFAULT,"Restart: %s",user->nick);
if (!strcmp(parameters[0],ServerInstance->Config->restartpass))
{
- WriteOpers("*** RESTART command from %s!%s@%s, restarting server.",user->nick,user->ident,user->host);
+ ServerInstance->WriteOpers("*** RESTART command from %s!%s@%s, restarting server.",user->nick,user->ident,user->host);
argv[0] = ServerInstance->Config->MyExecutable;
argv[1] = "-wait";
@@ -58,6 +58,6 @@ void cmd_restart::Handle (const char** parameters, int pcnt, userrec *user)
}
else
{
- WriteOpers("*** Failed RESTART Command from %s!%s@%s.",user->nick,user->ident,user->host);
+ ServerInstance->WriteOpers("*** Failed RESTART Command from %s!%s@%s.",user->nick,user->ident,user->host);
}
}