3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 03:33:10 +01:00

ServiceBot: remove extra_channels argument from the constructor

This is unused and a poor thing to hardcode anyways.
This commit is contained in:
James Lu 2017-01-21 11:43:26 -08:00
parent 1fe64cca04
commit d31d09ce7e

View File

@ -182,8 +182,7 @@ class ServiceBot():
"""
def __init__(self, name, default_help=True, default_list=True,
nick=None, ident=None, manipulatable=False, extra_channels=None,
desc=None):
nick=None, ident=None, manipulatable=False, desc=None):
# Service name
self.name = name
@ -205,7 +204,7 @@ class ServiceBot():
# Track what channels other than those defined in the config
# that the bot should join by default.
self.extra_channels = extra_channels or collections.defaultdict(set)
self.extra_channels = collections.defaultdict(set)
# Service description, used in the default help command if one is given.
self.desc = desc