From 0144e7ee6a709c3ae989a1ec58e86d818075de54 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Thu, 24 Jan 2013 11:47:35 -0500 Subject: [PATCH] Changing parting function to split because | counts as a field --- plugins/counter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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