Also capture channel setting-related modes (e.g. +f for flood settings)

This commit is contained in:
jesopo 2019-02-09 18:48:18 +00:00
parent 90618e883b
commit 84a3bf6135
2 changed files with 2 additions and 0 deletions

View file

@ -107,6 +107,7 @@ class Module(ModuleManager.BaseModule):
modes = isupport["CHANMODES"].split(",", 3)
event["server"].channel_list_modes = list(modes[0])
event["server"].channel_paramatered_modes = list(modes[1])
event["server"].channel_setting_modes = list(modes[2])
event["server"].channel_modes = list(modes[3])
if "CHANTYPES" in isupport:
event["server"].channel_types = list(isupport["CHANTYPES"])

View file

@ -56,6 +56,7 @@ class Server(IRCObject.Object):
(("o", "@"), ("v", "+")))
self.channel_modes = [] # type: typing.List[str]
self.channel_list_modes = [] # type: typing.List[str]
self.channel_setting_modes = [] # type: typing.List[str]
self.channel_paramatered_modes = [] # type: typing.List[str]
self.channel_types = ["#"]
self.case_mapping = "rfc1459"