mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 20:24:16 +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
|
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)
|
chatGui.Print(commandManager.Commands.TryGetValue(targetCommandText, out var targetCommand)
|
||||||
? $"{targetCommandText}: {targetCommand.HelpMessage}"
|
? $"{targetCommandText}: {targetCommand.HelpMessage}"
|
||||||
: Loc.Localize("DalamudCmdHelpNotFound", "Command not found."));
|
: Loc.Localize("DalamudCmdHelpNotFound", "Command not found."));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue