Could fix a ban evasion method.

This commit is contained in:
PJB3005
2015-07-26 01:50:57 +02:00
parent c81a7bc6e4
commit afd03230fd

View File

@@ -1,4 +1,8 @@
world/IsBanned(key,address,computer_id)
/world/IsBanned(key, address, computer_id)
if (!key || !address || !computer_id)
log_access("Failed Login (invalid data): [key] [address]-[computer_id]")
return list("reason" = "invalid login data", "desc" = "Your computer provided invalid or blank information to the server on connection (byond username, IP, and Computer ID.) Provided information for reference: Username: '[key]' IP: '[address]' Computer ID: '[computer_id]', If you continue to get this error, please restart byond or contact byond support.")
log_access("IsBanned: Checking [ckey(key)], [address], [computer_id]")
//Guest Checking
if(!guests_allowed && IsGuestKey(key))