Merge pull request #1808 from tgstation/FixHelpCommands [TGSDeploy]

v6.4.1: Fix chat help commands
This commit is contained in:
Jordan Dominion
2024-03-27 08:40:52 -04:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
<!-- Integration tests will ensure they match across the board -->
<Import Project="WebpanelVersion.props" />
<PropertyGroup>
<TgsCoreVersion>6.4.0</TgsCoreVersion>
<TgsCoreVersion>6.4.1</TgsCoreVersion>
<TgsConfigVersion>5.1.0</TgsConfigVersion>
<TgsApiVersion>10.2.0</TgsApiVersion>
<TgsCommonLibraryVersion>7.0.0</TgsCommonLibraryVersion>
@@ -839,7 +839,7 @@ namespace Tgstation.Server.Host.Components.Chat
splits.RemoveAt(0);
var arguments = String.Join(" ", splits);
Tuple<ICommand, IChatTrackingContext?>? GetCommand()
Tuple<ICommand, IChatTrackingContext?>? GetCommand(string command)
{
if (!builtinCommands.TryGetValue(command, out var handler))
return trackingContexts
@@ -867,7 +867,7 @@ namespace Tgstation.Server.Host.Components.Chat
}
else
{
var helpTuple = GetCommand();
var helpTuple = GetCommand(splits[0]);
if (helpTuple != default)
{
var (helpHandler, _) = helpTuple;
@@ -881,7 +881,7 @@ namespace Tgstation.Server.Host.Components.Chat
return;
}
var tuple = GetCommand();
var tuple = GetCommand(command);
if (tuple == default)
{