1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
10 * Written by Craig Edwards, Craig McLure, and others.
11 * This program is free but copyrighted software; see
12 * the file COPYING for details.
14 * ---------------------------------------------------
19 #include "inspircd_config.h"
21 #include "inspircd_io.h"
30 #include "inspstring.h"
31 #include "helperfuncs.h"
36 extern ServerConfig* Config;
38 void cmd_die::Handle (char **parameters, int pcnt, userrec *user)
40 log(DEBUG,"die: %s",user->nick);
41 if (!strcmp(parameters[0],Config->diepass))
43 WriteOpers("*** DIE command from %s!%s@%s, terminating...",user->nick,user->ident,user->host);
44 sleep(Config->DieDelay);
49 WriteOpers("*** Failed DIE Command from %s!%s@%s.",user->nick,user->ident,user->host);