]>
jfr.im git - irc/gameservirc.git/blob - gameserv/do_admin.cpp
9 char *pass
= strtok(NULL
, " ");
11 if (!(user
= find(u
)))
13 log("Error: aClient not found: %s", u
);
14 notice(s_GameServ
, u
, "Error: aClient not found. Contact <S admin.");
20 notice(s_GameServ
, u
, "SYNTAX: \ 2ADMIN\ 2 \ 2\1fpassword\1f\ 2");
26 notice(s_GameServ
, u
, "You already have administrator privledges.");
29 else if (strcmp(pass
, adminpass
) == 0)
31 notice(s_GameServ
, u
, "Password accepted. You now have administrator privledges.");
34 log("%s became an administrator.", user
->getRealNick());
36 log("%s became an administrator.", user
->getNick());
41 notice(s_GameServ
, u
, "Invalid password. Remember: case sensitive");