From 03604ef6f00ba7180b151bd0a490e8a2e0c28555 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Sun, 25 Jul 2010 15:27:46 -0500 Subject: [PATCH] countdown remove command and logging --- dr.botzo.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dr.botzo.py b/dr.botzo.py index bf2924f..014db48 100755 --- a/dr.botzo.py +++ b/dr.botzo.py @@ -147,6 +147,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] == 'remove': + try: + if config.remove_option('countdown', whats[2]): + connection.privmsg(replypath, 'removed countdown item ' + whats[2]) + except NoSectionError: pass elif whats[1] == 'list': try: cdlist = config.options('countdown')