Skip to content

Commit

Permalink
Validate global safe mode setting in CommandController
Browse files Browse the repository at this point in the history
  • Loading branch information
KazWolfe committed Aug 23, 2024
1 parent 94575c3 commit 32cc711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FFXIVPlugin/Server/Controllers/CommandController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void ExecuteCommand([NJsonData] SerializableTextCommand command) {
throw HttpException.BadRequest(UIStrings.CommandController_MissingCommandError);

// only allow use of commands here for safety purposes (validating chat is hard)
if (!command.Command.StartsWith('/') && command.SafeMode)
if (!command.Command.StartsWith('/') && (command.SafeMode || XIVDeckPlugin.Instance.Configuration.SafeMode))
throw HttpException.BadRequest(UIStrings.CommandController_NotCommandError);

GameUtils.SendDummyInput();
Expand Down

0 comments on commit 32cc711

Please sign in to comment.