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')