Fix help command to only respond when there is a space afterwards

This commit is contained in:
Chris Sexton 2016-03-21 18:05:51 -04:00
parent 2a702c7061
commit dc793a18c9
1 changed files with 1 additions and 1 deletions

View File

@ -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