1
0
Fork 0
forked from fte/fteqw

When trying to addip an IP address that has already been banned, and the code in fact detects that the address has already been banned, don't add a duplicate entry to the list of banned IP addresses.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4595 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Mark Olsen 2014-01-22 07:58:32 +00:00
parent a4f03df481
commit b9e46e4fa6

View file

@ -948,7 +948,7 @@ void SV_FilterIP_f (void)
if (NET_CompareAdr(&nb->adr, &banadr) && NET_CompareAdr(&nb->adrmask, &banmask))
{
Con_Printf("%s is already banned\n", Cmd_Argv(1));
break;
return;
}
nb = nb->next;
}