1
0
Fork 0
forked from fte/fteqw

Don't let them use rcon if we didn't set a password.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1358 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-09-24 11:42:38 +00:00
parent bb16df2141
commit 3a4d998f6c

View file

@ -425,6 +425,12 @@ void QTV_Rcon(sv_t *qtv, char *message, netadr_t *from)
char *command;
int passlen;
if (!*qtv->password)
{
Netchan_OutOfBandPrint(qtv->qwdsocket, *from, "n" "Rcon is disabled. Set a password.\n");
return;
}
while(*message > '\0' && *message <= ' ')
message++;