add default option with a timezone so that countdown items can be much less specific

This commit is contained in:
Brian S. Stephan 2010-07-25 12:03:35 -05:00
parent 50d99feaa7
commit 27780fc0b8
1 changed files with 1 additions and 1 deletions

View File

@ -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[1] == 'add':
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'):
config.add_section('countdown')