mirror of
https://github.com/jlu5/PyLink.git
synced 2025-10-15 07:57:21 +02:00
ServiceBot: remove extra_channels argument from the constructor
This is unused and a poor thing to hardcode anyways.
This commit is contained in:
parent
1fe64cca04
commit
d31d09ce7e
5
utils.py
5
utils.py
@ -182,8 +182,7 @@ class ServiceBot():
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, name, default_help=True, default_list=True,
|
def __init__(self, name, default_help=True, default_list=True,
|
||||||
nick=None, ident=None, manipulatable=False, extra_channels=None,
|
nick=None, ident=None, manipulatable=False, desc=None):
|
||||||
desc=None):
|
|
||||||
# Service name
|
# Service name
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
||||||
@ -205,7 +204,7 @@ class ServiceBot():
|
|||||||
|
|
||||||
# Track what channels other than those defined in the config
|
# Track what channels other than those defined in the config
|
||||||
# that the bot should join by default.
|
# 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.
|
# Service description, used in the default help command if one is given.
|
||||||
self.desc = desc
|
self.desc = desc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user