Keep a dict of isupport key:values on IRCServer.Server

This commit is contained in:
jesopo 2018-11-08 12:34:30 +00:00
parent 9744be6473
commit 26a16a7762
2 changed files with 3 additions and 1 deletions

View file

@ -78,6 +78,7 @@ class Module(ModuleManager.BaseModule):
isupport[key] = value
else:
isupport[key] = None
event["server"].isupport.update(isupport)
if "NAMESX" in isupport:
event["server"].send("PROTOCTL NAMESX")

View file

@ -36,8 +36,9 @@ class Server(IRCObject.Object):
self.users = {} # type: typing.Dict[str, IRCUser.User]
self.new_users = set([]) #type: typing.Set[IRCUser.User]
self.channels = {} # type: typing.Dict[str, IRCChannel.Channel]
self.own_modes = {} # type: typing.Dict[str, typing.Optional[str]]
self.isupport = {} # type: typing.Dict[str, typing.Optional[str]]
self.prefix_symbols = collections.OrderedDict(
(("@", "o"), ("+", "v")))
self.prefix_modes = collections.OrderedDict(