Skip to content

Commit

Permalink
Fix command handling in L4D2 Game Info Sync plugin to allow slash com…
Browse files Browse the repository at this point in the history
…mands
  • Loading branch information
altair-sossai committed Nov 8, 2024
1 parent 2850066 commit 0f0e588
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified addons/sourcemod/plugins/optional/l4d2_gameinfo_sync.smx
Binary file not shown.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/l4d2_gameinfo_sync.sp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Action Say_Callback(int client, char[] command, int args)
char message[MAX_MESSAGE_LENGTH];
GetCmdArg(1, message, sizeof(message));

if (strlen(message) == 0 || message[0] == '!')
if (strlen(message) == 0 || message[0] == '!' || message[0] == '/')
return Plugin_Continue;

JSONObject jObject = new JSONObject();
Expand Down

0 comments on commit 0f0e588

Please sign in to comment.