Changing parting function to split because | counts as a field

This commit is contained in:
Chris Sexton 2013-01-24 11:47:35 -05:00
parent b692f54346
commit 0144e7ee6a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ func (p *CounterPlugin) Message(message bot.Message) bool {
// This bot does not reply to anything // This bot does not reply to anything
nick := message.User.Name nick := message.User.Name
channel := message.Channel channel := message.Channel
parts := strings.Fields(message.Body) parts := strings.Split(message.Body, " ")
if len(parts) == 0 { if len(parts) == 0 {
return false return false