Skip to content

Commit

Permalink
Merge pull request #1808 from tgstation/FixHelpCommands [TGSDeploy]
Browse files Browse the repository at this point in the history
v6.4.1: Fix chat help commands
  • Loading branch information
Cyberboss authored Mar 27, 2024
2 parents 1b26d93 + 1f89791 commit 0cf3ded
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions src/Tgstation.Server.Host/Components/Chat/ChatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ ValueTask TextReply(string reply) => SendMessage(
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
Expand Down Expand Up @@ -867,7 +867,7 @@ ValueTask TextReply(string reply) => SendMessage(
}
else
{
var helpTuple = GetCommand();
var helpTuple = GetCommand(splits[0]);
if (helpTuple != default)
{
var (helpHandler, _) = helpTuple;
Expand All @@ -881,7 +881,7 @@ ValueTask TextReply(string reply) => SendMessage(
return;
}

var tuple = GetCommand();
var tuple = GetCommand(command);

if (tuple == default)
{
Expand Down

0 comments on commit 0cf3ded

Please sign in to comment.