diff --git a/plugins/counter.go b/plugins/counter.go index 7ba4bc4..14cc2e5 100644 --- a/plugins/counter.go +++ b/plugins/counter.go @@ -38,7 +38,7 @@ func (p *CounterPlugin) Message(message bot.Message) bool { // This bot does not reply to anything nick := message.User.Name channel := message.Channel - parts := strings.Fields(message.Body) + parts := strings.Split(message.Body, " ") if len(parts) == 0 { return false