Don't send the message along after a failed parse

This commit is contained in:
Steve McCoy 2018-08-30 16:11:32 -04:00
parent aa7a09937c
commit cafc31cfe6
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func (p *PickerPlugin) Message(message msg.Message) bool {
n, items, err := p.parse(message.Body) n, items, err := p.parse(message.Body)
if err != nil { if err != nil {
p.Bot.SendMessage(message.Channel, err.Error()) p.Bot.SendMessage(message.Channel, err.Error())
return false return true
} }
if n == 1 { if n == 1 {