From 15170405d4d77b4695d66eb09c52512f9d1a16b7 Mon Sep 17 00:00:00 2001 From: TheDZD Date: Sun, 3 Jan 2016 11:56:39 -0500 Subject: [PATCH] Makes IsBanned use text2num for CIDs CIDs are text, not numbers, so this is necessary. Port of tgstation/-tg-station#13577, might finally sticky bans going haywire. --- code/modules/admin/IsBanned.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/IsBanned.dm b/code/modules/admin/IsBanned.dm index 7565d710091..c8ae67d4cab 100644 --- a/code/modules/admin/IsBanned.dm +++ b/code/modules/admin/IsBanned.dm @@ -4,7 +4,7 @@ world/IsBanned(key,address,computer_id) 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) //this cid causes stickybans to go haywire + if (text2num(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