mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-26 04:32:51 +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.
|
and see if it will work.
|
||||||
If the <time string> is not given, defaults to now.
|
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())))
|
irc.reply(str(int(time.time())))
|
||||||
return
|
return
|
||||||
if not parse:
|
if not parse:
|
||||||
|
Loading…
Reference in New Issue
Block a user