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