Skip to content

Commit

Permalink
oups
Browse files Browse the repository at this point in the history
  • Loading branch information
louis1706 committed Apr 21, 2024
1 parent 00634ef commit d693983
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions BetterHelpCommand/Patches/HelpCommandPatche.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
[HarmonyPatch(typeof(HelpCommand), nameof(HelpCommand.GetCommandList))]
internal class HelpCommandPatche
{
private static readonly Regex ConsoleTagReplacer = new(@"<\/?[ib]>");

private static bool Prefix(HelpCommand __instance, ICommandHandler handler, string header, ref string __result)
{
StringBuilder _helpBuilder = __instance._helpBuilder;
Expand All @@ -37,6 +35,7 @@ private static bool Prefix(HelpCommand __instance, ICommandHandler handler, stri
GetCommand(command);
}

__result = _helpBuilder.ToString();
return false;

void GetCommand(ICommand command, int space = 0)
Expand Down

0 comments on commit d693983

Please sign in to comment.