]>
jfr.im git - irc/gameservirc.git/blob - gameserv/do_reset.cpp
9 char *nick
= strtok(NULL
, " ");
13 if (!(user
= find(u
)))
15 notice(s_GameServ
, u
, "Error: aClient not found. Contact a <S admin");
16 log("Error: aClient not found: %s", u
);
19 else if (!isAdmin(user
))
21 notice(s_GameServ
, u
, "You must be a <S admin to use this command!");
27 notice(s_GameServ
, u
, "SYNTAX: RESET {ALL | NICK}");
29 else if (stricmp(nick
, "ALL") == 0)
31 notice(s_GameServ
, u
, "Resetting everyone's stats!");
34 else if (!(p
= findplayer(nick
)))
36 notice(s_GameServ
, u
, "Nick %s not found.", nick
);
40 notice(s_GameServ
, u
, "Resetting %s.", p
->getName().c_str());