diff --git a/plugins/goals/goals.go b/plugins/goals/goals.go index 7c60f16..4120b3f 100644 --- a/plugins/goals/goals.go +++ b/plugins/goals/goals.go @@ -85,14 +85,14 @@ func (p *GoalsPlugin) registerCmds() { return true }}, {Kind: bot.Message, IsCmd: true, - Regex: regexp.MustCompile(`(?i)^check (?Pcompetition|goal) for (?P[[:punct:][:alnum:]]+) (?P[[:punct:][:alnum:]]+)`), + Regex: regexp.MustCompile(`(?i)^check (?Pcompetition|goal) for (?P[[:punct:][:alnum:]]+) (?P[^\s]+)`), HelpText: "Check with `%s` for other people", Handler: func(r bot.Request) bool { p.check(r.Conn, r.Msg.Channel, r.Values["type"], r.Values["what"], r.Values["who"]) return true }}, {Kind: bot.Message, IsCmd: true, - Regex: regexp.MustCompile(`(?i)^check (?Pcompetition|goal) (?P[[:punct:][:alnum:]]+)`), + Regex: regexp.MustCompile(`(?i)^check (?Pcompetition|goal) (?P[^\s]+)`), HelpText: "Check with `%s` for yourself", Handler: func(r bot.Request) bool { p.check(r.Conn, r.Msg.Channel, r.Values["type"], r.Values["what"], r.Msg.User.Name)