mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-07-20 12:33:00 +01:00
Merge pull request #1808 from tgstation/FixHelpCommands [TGSDeploy]
v6.4.1: Fix chat help commands
This commit is contained in:
+1
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user