From a76168e359909e8c18c7a027ee28d03bc92c03cd Mon Sep 17 00:00:00 2001 From: christian Date: Fri, 30 Apr 2021 14:04:42 +0200 Subject: [PATCH] added capital letters --- UNLOZE_BanDetector/scripting/UNLOZE_BanDetector.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UNLOZE_BanDetector/scripting/UNLOZE_BanDetector.sp b/UNLOZE_BanDetector/scripting/UNLOZE_BanDetector.sp index cd5dabee..7931c243 100644 --- a/UNLOZE_BanDetector/scripting/UNLOZE_BanDetector.sp +++ b/UNLOZE_BanDetector/scripting/UNLOZE_BanDetector.sp @@ -130,7 +130,7 @@ public CheckBans_SteamID(client, parentAuthID, clientAuthID) Format(authid, sizeof(authid), "STEAM_0:%d:%d", (parentAuthID & 1), (parentAuthID >> 1)); new String:query[512]; - Format(query, sizeof(query), "SELECT * FROM sb_bans WHERE authid = '%s' AND ((length = 0 OR ends > UNIX_TIMESTAMP()) AND removetype IS NULL)", authid); + Format(query, sizeof(query), "SELECT * FROM sb_bans WHERE authid = '%s' AND ((length = 0 OR ends > UNIX_TIMESTAMP()) AND RemoveType IS NULL)", authid); // Format(query, sizeof(query), "SELECT * FROM sb_bans WHERE authid = '%s' AND ((ends > '%d' AND length != '0') OR length = '0')", authid, GetTime()); LogMessage("[BanDetector] Checking family sharing user %L (AUTH: %s, PAUTH: %d, CAUTH: %d)", client, authid, parentAuthID, clientAuthID); @@ -150,7 +150,7 @@ public CheckBans_IPAdress(client) GetClientIP(client, adress, sizeof(adress)); new String:query[512]; - Format(query, sizeof(query), "SELECT * FROM sb_bans WHERE ip = '%s' AND ((length = 0 OR ends > UNIX_TIMESTAMP()) AND removetype IS NULL AND (aid != 0 OR reason != 'Ban evasion (IP)')", adress); + Format(query, sizeof(query), "SELECT * FROM sb_bans WHERE ip = '%s' AND ((length = 0 OR ends > UNIX_TIMESTAMP()) AND RemoveType IS NULL AND (aid != 0 OR reason != 'Ban evasion (IP)')", adress); // Format(query, sizeof(query), "SELECT * FROM sb_bans WHERE ip = '%s' AND ((ends > '%d' AND length != '0') OR length = '0') AND ((reason != 'Ban evasion (IP)' AND aid = '0') OR aid != '0')", adress, GetTime()); LogMessage("[BanDetector] Checking user %L (IP: %s)", client, adress);