mirror of https://github.com/velour/catbase.git
Changing parting function to split because | counts as a field
This commit is contained in:
parent
b692f54346
commit
0144e7ee6a
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue