From 155c8198a40449ee73b4111f0ed936ceb996b17e Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 18 Feb 2024 11:37:43 +0100 Subject: [PATCH] updated query to exclude empty fingerprints and null fingerprints --- jenz_ban_detector/scripting/jenz_ban_detector.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenz_ban_detector/scripting/jenz_ban_detector.sp b/jenz_ban_detector/scripting/jenz_ban_detector.sp index 723e2a22..b617ff48 100644 --- a/jenz_ban_detector/scripting/jenz_ban_detector.sp +++ b/jenz_ban_detector/scripting/jenz_ban_detector.sp @@ -184,7 +184,7 @@ public Action SQL_Select_fingerprints(Handle hTimer, int Serial) GetClientIP(client, sIP, sizeof(sIP)); GetClientAuthId(client, AuthId_Steam2, sSID, sizeof(sSID)); //steamID is unique but fingerprint might occur multiple times. - Format(sQuery, sizeof(sQuery), "select steamid from ban_detector.ban_detector where fingerprint = (select fingerprint from ban_detector.ban_detector where steamid = '%s')", sSID); + Format(sQuery, sizeof(sQuery), "select steamid from ban_detector.ban_detector where fingerprint = (select fingerprint from ban_detector.ban_detector where steamid = '%s' and fingerprint is not null and length(fingerprint) > 5)", sSID); //PrintToChatAll("sQuery: %s", sQuery); g_dDatabase.Query(SQL_FindFingerPrints, sQuery, Serial, DBPrio_Low); }