Skip to content

Commit

Permalink
Ignore chat triggers for interactive ban reason (#974)
Browse files Browse the repository at this point in the history
Follow SourceMod behaviour pushed on 363b4b6
Credits to @Rainyan
  • Loading branch information
Rushaway authored Sep 22, 2024
1 parent 30608fd commit dce2ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/addons/sourcemod/scripting/sbpp_main.sp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#pragma newdecls required

#define SB_VERSION "1.8.1"
#define SB_VERSION "1.8.2"

This comment has been minimized.

Copy link
@DNA-styx

DNA-styx Sep 22, 2024

Worth bumping the web interface to match?


#if defined _updater_included
#define UPDATE_URL "https://sbpp.github.io/updater/updatefile.txt"
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit dce2ae1

Please sign in to comment.