diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd_die.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/cmd_die.cpp b/src/cmd_die.cpp index d9aecb4be..c5e87e6a0 100644 --- a/src/cmd_die.cpp +++ b/src/cmd_die.cpp @@ -28,21 +28,7 @@ CmdResult cmd_die::Handle (const char** parameters, int pcnt, userrec *user) if (!strcmp(parameters[0],ServerInstance->Config->diepass)) { ServerInstance->Log(SPARSE, "/DIE command from %s!%s@%s, terminating in %d seconds...", user->nick, user->ident, user->host, ServerInstance->Config->DieDelay); - - /* This would just be WriteOpers(), but as we just sleep() and then die then the write buffers never get flushed. - * so we iterate the oper list, writing the message and immediately trying to flush their write buffer. - */ - - for (std::vector<userrec*>::iterator i = ServerInstance->all_opers.begin(); i != ServerInstance->all_opers.end(); i++) - { - userrec* a = *i; - - if (IS_LOCAL(a) && (a->modes[UM_SERVERNOTICE])) - { - a->WriteServ("NOTICE %s :*** DIE command from %s!%s@%s, terminating...", a->nick, a->nick, a->ident, a->host); - a->FlushWriteBuf(); - } - } + ServerInstance->SendError("*** DIE command from %s!%s@%s, terminating...", user->nick, user->nick, user->ident, user->dhost); if (ServerInstance->Config->DieDelay) sleep(ServerInstance->Config->DieDelay); |