diff options
-rw-r--r-- | data/rbot/plugins/remind.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/data/rbot/plugins/remind.rb b/data/rbot/plugins/remind.rb index ca695a49..78b3c0f2 100644 --- a/data/rbot/plugins/remind.rb +++ b/data/rbot/plugins/remind.rb @@ -136,14 +136,12 @@ class RemindPlugin < Plugin if(repeat) @reminders[who][subject] = @bot.timer.add(period) { - time = Time.now + period - tstr = time.strftime("%H:%M:%S") + tstr = (Time.now + period).time.strftime("%H:%M:%S") @bot.say who, "repeat reminder (next at #{tstr}): #{subject}" } else @reminders[who][subject] = @bot.timer.add_once(period) { - time = Time.now + period - tstr = time.strftime("%H:%M:%S") + tstr = Time.now.strftime("%H:%M:%S") @bot.say who, "reminder (#{tstr}): #{subject}" } end |