mirror of https://github.com/velour/catbase.git
Don't send the message along after a failed parse
This commit is contained in:
parent
aa7a09937c
commit
cafc31cfe6
|
@ -37,7 +37,7 @@ func (p *PickerPlugin) Message(message msg.Message) bool {
|
|||
n, items, err := p.parse(message.Body)
|
||||
if err != nil {
|
||||
p.Bot.SendMessage(message.Channel, err.Error())
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
if n == 1 {
|
||||
|
|
Loading…
Reference in New Issue