From d879ee1c922e40777801d67b6edee169c2093ca7 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 25 Jul 2010 12:54:22 -0500 Subject: [PATCH] display list of countdown items --- dr.botzo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dr.botzo.py b/dr.botzo.py index 4923244..b485395 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -146,6 +146,11 @@ def sub_countdown(connection, event, nick, userhost, replypath, what, admin_unlo config.set('countdown', item, target.astimezone(tzutc()).isoformat()) connection.privmsg(replypath, 'added countdown item') + elif whats[1] == 'list': + try: + liststr = ', '.join(config.options('countdown')) + connection.privmsg(replypath, liststr) + except NoSectionError: pass else: try: timestr = config.get('countdown', whats[1])