diff --git a/bot/handlers.go b/bot/handlers.go index ee0d5b6..e8d9a27 100644 --- a/bot/handlers.go +++ b/bot/handlers.go @@ -87,7 +87,7 @@ func (b *Bot) isCmd(message string) (bool, string) { if strings.HasPrefix(lowerMessage, cmdc) && len(cmdc) > 0 { iscmd = true message = message[len(cmdc):] - } else if strings.HasPrefix(lowerMessage, botnick) { + } else if strings.HasPrefix(lowerMessage, botnick) && lowerMessage[len(botnick)] != ' ' { iscmd = true message = message[len(botnick):]