mirror of https://github.com/velour/catbase.git
miscounted tokens in reminder plugin
This commit is contained in:
parent
2764410ad4
commit
a3312c7c50
|
@ -91,7 +91,7 @@ func (p *ReminderPlugin) Message(message msg.Message) bool {
|
||||||
|
|
||||||
parts := strings.Fields(message.Body)
|
parts := strings.Fields(message.Body)
|
||||||
|
|
||||||
if len(parts) > 5 {
|
if len(parts) >= 5 {
|
||||||
if strings.ToLower(parts[0]) == "remind" {
|
if strings.ToLower(parts[0]) == "remind" {
|
||||||
who := parts[1]
|
who := parts[1]
|
||||||
dur, err := time.ParseDuration(parts[3])
|
dur, err := time.ParseDuration(parts[3])
|
||||||
|
|
Loading…
Reference in New Issue