miscounted tokens in reminder plugin

This commit is contained in:
skiesel 2016-05-09 13:27:28 -04:00
parent 2764410ad4
commit a3312c7c50
1 changed files with 1 additions and 1 deletions

View File

@ -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])