Support passing unrestricted args between connections

This commit is contained in:
jesopo 2018-11-08 17:09:07 +00:00
parent 2e43c9f3cf
commit 3ff68dc427

View file

@ -159,7 +159,8 @@ OPT_STR = typing.Optional[str]
class IRCConnectionParameters(object): class IRCConnectionParameters(object):
def __init__(self, id: int, alias: OPT_STR, hostname: str, port: int, def __init__(self, id: int, alias: OPT_STR, hostname: str, port: int,
password: OPT_STR, tls: bool, ipv4: bool, bindhost: OPT_STR, password: OPT_STR, tls: bool, ipv4: bool, bindhost: OPT_STR,
nickname: str, username: OPT_STR, realname: OPT_STR): nickname: str, username: OPT_STR, realname: OPT_STR,
args: typing.Dict[str, str]={}):
self.id = id self.id = id
self.alias = alias self.alias = alias
self.hostname = hostname self.hostname = hostname
@ -171,3 +172,4 @@ class IRCConnectionParameters(object):
self.nickname = nickname self.nickname = nickname
self.username = username self.username = username
self.realname = realname self.realname = realname
self.args = args