From 3a4d3352fdd298a323fb980738ecc8fe6aa6c7c9 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Wed, 26 Jun 2024 08:48:37 +0200 Subject: [PATCH] Ignore chat triggers for interactive ban reason Follow SourceMod behaviour pushed on 363b4b6 Credits to @Rainyan --- game/addons/sourcemod/scripting/sbpp_main.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/addons/sourcemod/scripting/sbpp_main.sp b/game/addons/sourcemod/scripting/sbpp_main.sp index f0d406328..5bc16abcd 100644 --- a/game/addons/sourcemod/scripting/sbpp_main.sp +++ b/game/addons/sourcemod/scripting/sbpp_main.sp @@ -35,7 +35,7 @@ #pragma newdecls required -#define SB_VERSION "1.8.1" +#define SB_VERSION "1.8.2" #if defined _updater_included #define UPDATE_URL "https://sbpp.github.io/updater/updatefile.txt" @@ -417,7 +417,7 @@ public void Event_OnPlayerName(Handle event, const char[] name, bool dontBroadca public Action ChatHook(int client, int args) { // is this player preparing to ban someone - if (g_ownReasons[client]) + if (g_ownReasons[client] && !IsChatTrigger()) { // get the reason char reason[512];