From dc793a18c9e2d7659676b6398d2292c16b902bd5 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Mon, 21 Mar 2016 18:05:51 -0400 Subject: [PATCH] Fix help command to only respond when there is a space afterwards --- bot/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/handlers.go b/bot/handlers.go index b1322b8..902fa7c 100644 --- a/bot/handlers.go +++ b/bot/handlers.go @@ -21,7 +21,7 @@ func (b *Bot) MsgReceived(msg Message) { // msg := b.buildMessage(client, inMsg) // do need to look up user and fix it - if strings.HasPrefix(msg.Body, "help") && msg.Command { + if strings.HasPrefix(msg.Body, "help ") && msg.Command { parts := strings.Fields(strings.ToLower(msg.Body)) b.checkHelp(msg.Channel, parts) goto RET