add default option with a timezone so that countdown items can be much less specific
This commit is contained in:
parent
50d99feaa7
commit
27780fc0b8
|
@ -140,7 +140,7 @@ def sub_add_countdown(connection, event, nick, userhost, replypath, what, admin_
|
||||||
if whats[0] == 'countdown' and len(whats) >= 4:
|
if whats[0] == 'countdown' and len(whats) >= 4:
|
||||||
if whats[1] == 'add':
|
if whats[1] == 'add':
|
||||||
item = whats[2]
|
item = whats[2]
|
||||||
target = parse(' '.join(whats[3:]))
|
target = parse(' '.join(whats[3:]), default=datetime.now().replace(tzinfo=tzlocal()))
|
||||||
if not config.has_section('countdown'):
|
if not config.has_section('countdown'):
|
||||||
config.add_section('countdown')
|
config.add_section('countdown')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue