Set default values for various types of channel modes (src/IRCServer.py)

This commit is contained in:
jesopo 2019-02-09 18:52:59 +00:00
parent 84a3bf6135
commit b44c456081

View file

@ -50,14 +50,19 @@ class Server(IRCObject.Object):
self.own_modes = {} # type: typing.Dict[str, typing.Optional[str]] self.own_modes = {} # type: typing.Dict[str, typing.Optional[str]]
self.isupport = {} # type: typing.Dict[str, typing.Optional[str]] self.isupport = {} # type: typing.Dict[str, typing.Optional[str]]
self.prefix_symbols = collections.OrderedDict( self.prefix_symbols = collections.OrderedDict(
(("@", "o"), ("+", "v"))) (("@", "o"), ("+", "v")))
self.prefix_modes = collections.OrderedDict( self.prefix_modes = collections.OrderedDict(
(("o", "@"), ("v", "+"))) (("o", "@"), ("v", "+")))
self.channel_modes = [] # type: typing.List[str]
self.channel_list_modes = [] # type: typing.List[str] self.channel_list_modes = ["b"] # type: typing.List[str]
self.channel_setting_modes = [] # type: typing.List[str] self.channel_paramatered_modes = ["k"] # type: typing.List[str]
self.channel_paramatered_modes = [] # type: typing.List[str] self.channel_setting_modes = ["l"] # type: typing.List[str]
self.channel_modes = [
"n", "i", "m", "t", "p", "s"
] # type: typing.List[str]
self.channel_types = ["#"] self.channel_types = ["#"]
self.case_mapping = "rfc1459" self.case_mapping = "rfc1459"