mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
kicking a botclient was causing a crash due to logging their invalid ip. don't log bots.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3091 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b4defb722a
commit
8fb77f7301
1 changed files with 3 additions and 0 deletions
|
@ -273,6 +273,9 @@ void SV_LogPlayer(client_t *cl, char *msg)
|
|||
char remote_adr[MAX_ADR_SIZE];
|
||||
char realip_adr[MAX_ADR_SIZE];
|
||||
|
||||
if (cl->protocol == SCP_BAD)
|
||||
return; //don't log botclients
|
||||
|
||||
snprintf(line, sizeof(line),
|
||||
"%s\\%s\\%i\\%s\\%s\\%i%s\n",
|
||||
msg, cl->name, cl->userid,
|
||||
|
|
Loading…
Reference in a new issue