ircmgmt: cleanups, remove some unused stuff

This commit is contained in:
Brian S. Stephan 2015-05-15 21:21:39 -05:00
parent fd85d37474
commit 80eca4781c
1 changed files with 2 additions and 6 deletions

View File

@ -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