From 80eca4781cb7f194dee442a2e45c5e8446272474 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Fri, 15 May 2015 21:21:39 -0500 Subject: [PATCH] ircmgmt: cleanups, remove some unused stuff --- dr_botzo/ircbot/ircplugins/ircmgmt.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dr_botzo/ircbot/ircplugins/ircmgmt.py b/dr_botzo/ircbot/ircplugins/ircmgmt.py index 03baa46..b0fc1ef 100644 --- a/dr_botzo/ircbot/ircplugins/ircmgmt.py +++ b/dr_botzo/ircbot/ircplugins/ircmgmt.py @@ -1,10 +1,10 @@ import logging -from ircbot.lib import Plugin, is_admin, reply_destination_for_event +from ircbot.lib import Plugin, is_admin from ircbot.models import IrcChannel -log = logging.getLogger('ircbot.lib') +log = logging.getLogger('ircbot.ircplugins.ircmgmt') class ChannelManagement(Plugin): @@ -48,8 +48,6 @@ class ChannelManagement(Plugin): def handle_join(self, connection, event, match): """Handle the join command.""" - dest = reply_destination_for_event(event) - if is_admin(event.source): channel = match.group(1) # put it in the database if it isn't already @@ -62,8 +60,6 @@ class ChannelManagement(Plugin): def handle_part(self, connection, event, match): """Handle the join command.""" - dest = reply_destination_for_event(event) - if is_admin(event.source): channel = match.group(1) # put it in the database if it isn't already