From 27780fc0b8457eb387030a8375881175db607d0c Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 25 Jul 2010 12:03:35 -0500 Subject: [PATCH] add default option with a timezone so that countdown items can be much less specific --- dr.botzo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dr.botzo.py b/dr.botzo.py index 967eb0c..2c892fa 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -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')