Skip to content

Commit

Permalink
Merge pull request tgstation#13576 from tgstation/revert-13575-RemieR…
Browse files Browse the repository at this point in the history
…ichards-patch-1

[s]Revert "[s]Fixes the logic of IsBanned and bad CIDs"
  • Loading branch information
RemieRichards committed Dec 11, 2015
2 parents 839ddcf + 0ae0f84 commit 060558d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/admin/IsBanned.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
log_access("Failed Login (invalid data): [key] [address]-[computer_id]")
return list("reason"="invalid login data", "desc"="Error: Could not check ban status, Please try again. Error message: 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.)")

if (computer_id >= 2147483647) //cids over the integer max causes stickybans to go haywire
if (computer_id == 2147483647) //this cid causes stickybans to go haywire
log_access("Failed Login (invalid cid): [key] [address]-[computer_id]")
return list("reason"="invalid login data", "desc"="Error: Could not check ban status, Please try again. Error message: Your computer provided an invalid Computer ID.)")
var/admin = 0
Expand Down

0 comments on commit 060558d

Please sign in to comment.