mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-19 08:59:27 +01:00
Time: Explicitely handle the 'now' case.
dateutil never handled it, and just returned the current day. https://github.com/dateutil/dateutil/issues/212
This commit is contained in:
parent
7f38076e59
commit
fc3c9eec7c
@ -114,7 +114,7 @@ class Time(callbacks.Plugin):
|
||||
and see if it will work.
|
||||
If the <time string> is not given, defaults to now.
|
||||
"""
|
||||
if not s:
|
||||
if not s or s == 'now':
|
||||
irc.reply(str(int(time.time())))
|
||||
return
|
||||
if not parse:
|
||||
|
Loading…
Reference in New Issue
Block a user