From d13aa00a571fac1ece565c40d457835a35b534e3 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 7 Feb 2021 17:21:16 -0800 Subject: [PATCH] Bot: Fixed extra space in top-level comments --- bot/subcommand.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bot/subcommand.go b/bot/subcommand.go index 57bcdcd..1c65cdc 100644 --- a/bot/subcommand.go +++ b/bot/subcommand.go @@ -256,8 +256,10 @@ func (sub *Subcommand) HelpGenerate(showHidden bool) string { continue } - buf.WriteString(sub.Command) - buf.WriteByte(' ') + if sub.Command != "" { + buf.WriteString(sub.Command) + buf.WriteByte(' ') + } if cmd == sub.PlumbedMethod() { buf.WriteByte('[')