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:
Spoike 2008-12-06 02:08:57 +00:00
parent b4defb722a
commit 8fb77f7301
1 changed files with 3 additions and 0 deletions

View File

@ -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,