mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-12-01 16:11:54 +00:00
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:
parent
bb16df2141
commit
3a4d998f6c
1 changed files with 6 additions and 0 deletions
|
@ -425,6 +425,12 @@ void QTV_Rcon(sv_t *qtv, char *message, netadr_t *from)
|
||||||
char *command;
|
char *command;
|
||||||
int passlen;
|
int passlen;
|
||||||
|
|
||||||
|
if (!*qtv->password)
|
||||||
|
{
|
||||||
|
Netchan_OutOfBandPrint(qtv->qwdsocket, *from, "n" "Rcon is disabled. Set a password.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
while(*message > '\0' && *message <= ' ')
|
while(*message > '\0' && *message <= ' ')
|
||||||
message++;
|
message++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue