mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: trim /xlhelp arguments
This commit is contained in:
parent
85798cc11a
commit
43d9cf36fa
1 changed files with 2 additions and 1 deletions
|
|
@ -160,7 +160,8 @@ internal class DalamudCommands : IServiceType
|
|||
}
|
||||
else
|
||||
{
|
||||
var targetCommandText = arguments[0] == '/' ? arguments : $"/{arguments}";
|
||||
var trimmedArguments = arguments.Trim();
|
||||
var targetCommandText = trimmedArguments[0] == '/' ? trimmedArguments : $"/{trimmedArguments}";
|
||||
chatGui.Print(commandManager.Commands.TryGetValue(targetCommandText, out var targetCommand)
|
||||
? $"{targetCommandText}: {targetCommand.HelpMessage}"
|
||||
: Loc.Localize("DalamudCmdHelpNotFound", "Command not found."));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue