From a3312c7c5038745e6d6a2a22f54a7aea60beffae Mon Sep 17 00:00:00 2001 From: skiesel Date: Mon, 9 May 2016 13:27:28 -0400 Subject: [PATCH] miscounted tokens in reminder plugin --- plugins/reminder/reminder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/reminder/reminder.go b/plugins/reminder/reminder.go index 69a8994..6a4aafd 100644 --- a/plugins/reminder/reminder.go +++ b/plugins/reminder/reminder.go @@ -91,7 +91,7 @@ func (p *ReminderPlugin) Message(message msg.Message) bool { parts := strings.Fields(message.Body) - if len(parts) > 5 { + if len(parts) >= 5 { if strings.ToLower(parts[0]) == "remind" { who := parts[1] dur, err := time.ParseDuration(parts[3])