mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[raknet] Match RakPeer::AddToBanList(...)
This commit is contained in:
parent
f014eb9310
commit
301b7dbf30
@ -1494,7 +1494,7 @@ void RakPeer::AddToBanList( const char *IP, RakNetTime milliseconds )
|
|||||||
unsigned index;
|
unsigned index;
|
||||||
RakNetTime time = RakNet::GetTime();
|
RakNetTime time = RakNet::GetTime();
|
||||||
|
|
||||||
if ( IP == 0 || IP[ 0 ] == 0 || strlen( IP ) > 15 )
|
if ( strcmp( IP, "127.0.0.1" ) == 0 || IP == 0 || IP[ 0 ] == 0 || strlen( IP ) > 15 )
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
// If this guy is already in the ban list, do nothing
|
// If this guy is already in the ban list, do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user