]>
jfr.im git - irc/gameservirc.git/blob - gameserv/do_shutdown.cpp
6 void do_shutdown(char *u
)
10 if (!(user
= find(u
)))
12 notice(s_GameServ
, u
, "Error: aClient not found. Contact a <S admin");
13 log("Error: aClient not found: %s", u
);
15 else if (!isAdmin(user
))
17 notice(s_GameServ
, u
, "You must be a <S admin to use this command!");
23 raw("[] SQ %s 0 :leaving: %s used the Shutdown command.",
24 servername
, user
->getRealNick());
26 raw("SQUIT %s :leaving: %s used the Shutdown command.", servername
, u
);