From 9075aecb1864e0fcf4d4489d0381b8819f471451 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 15 Jan 2009 12:08:33 -0500 Subject: [PATCH] Updated basebans.sp to support L4D and allow future expansion of the STEAM_ identifier. (bug 3567 r=dvander) --- plugins/basebans.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/basebans.sp b/plugins/basebans.sp index 938b866f..78437be8 100644 --- a/plugins/basebans.sp +++ b/plugins/basebans.sp @@ -237,7 +237,7 @@ public Action:Command_AddBan(client, args) } /* Verify steamid */ - if (strncmp(authid, "STEAM_0:", 8) != 0) + if (strncmp(authid, "STEAM_", 6) != 0 || authid[7] != ':') { ReplyToCommand(client, "[SM] %t", "Invalid SteamID specified"); return Plugin_Handled; @@ -278,7 +278,7 @@ public Action:Command_Unban(client, args) ReplaceString(arg, sizeof(arg), "\"", ""); new ban_flags; - if (strncmp(arg, "STEAM_0:", 8) == 0) + if (strncmp(arg, "STEAM_", 6) == 0 && arg[7] == ':') { ban_flags |= BANFLAG_AUTHID; }