From 2a9a17cc94c929d8e24f9407518849dd2abae3c1 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 25 Jul 2010 12:47:34 -0500 Subject: [PATCH] print the saved countdown string. not entirely sure if i want to keep this --- dr.botzo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dr.botzo.py b/dr.botzo.py index 37c8320..7797d29 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -148,7 +148,8 @@ def sub_countdown(connection, event, nick, userhost, replypath, what, admin_unlo connection.privmsg(replypath, 'added countdown item') else: try: - time = parse(config.get('countdown', whats[1])) + timestr = config.get('countdown', whats[1]) + time = parse(timestr) rdelta = relativedelta(time, datetime.now().replace(tzinfo=tzlocal())) relstr = whats[1] + ' will occur in ' if rdelta.years != 0: @@ -163,6 +164,7 @@ def sub_countdown(connection, event, nick, userhost, replypath, what, admin_unlo relstr += str(rdelta.minutes) + ' minutes ' if rdelta.seconds != 0: relstr += str(rdelta.seconds) + ' seconds' + relstr += ' (' + timestr + ')' connection.privmsg(replypath, relstr) except NoOptionError: pass