aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-02-09 18:52:59 +0000
committerGravatar jesopo2019-02-09 18:52:59 +0000
commitb44c4560819eba16b7ea40a53397d41f6d139bae (patch)
tree73e1da8f33a3211c4c60d19328ad98d4f00f3fca /src
parentAlso capture channel setting-related modes (e.g. +f for flood settings) (diff)
signature
Set default values for various types of channel modes (src/IRCServer.py)
Diffstat (limited to 'src')
-rw-r--r--src/IRCServer.py13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/IRCServer.py b/src/IRCServer.py
index d3ced447..65694449 100644
--- a/src/IRCServer.py
+++ b/src/IRCServer.py
@@ -50,14 +50,19 @@ class Server(IRCObject.Object):
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(
(("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_list_modes = ["b"] # type: typing.List[str]
+ self.channel_paramatered_modes = ["k"] # 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.case_mapping = "rfc1459"