From b081270aa172e23435bc5e694c130d6c2a5f823b Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 12 Jul 2017 21:06:11 -0700 Subject: [PATCH] ts6: tweak some misplaced mode definitions Charybdis provides deaf as umode +D and ssl as umode +Z --- protocols/ts6.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/protocols/ts6.py b/protocols/ts6.py index 560b557..d848c99 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -258,7 +258,7 @@ class TS6Protocol(TS6BaseProtocol): 'quiet': 'q', 'redirect': 'f', 'freetarget': 'F', 'joinflood': 'j', 'largebanlist': 'L', 'permanent': 'P', 'noforwards': 'Q', 'stripcolor': 'c', 'allowinvite': - 'g', 'opmoderated': 'z', 'noctcp': 'C', + 'g', 'opmoderated': 'z', 'noctcp': 'C', 'ssl': 'Z', # charybdis-specific modes provided by EXTENSIONS 'operonly': 'O', 'adminonly': 'A', 'sslonly': 'S', 'nonotice': 'T', @@ -290,7 +290,7 @@ class TS6Protocol(TS6BaseProtocol): # Toggles support of shadowircd/elemental-ircd specific channel modes: # +T (no notice), +u (hidden ban list), +E (no kicks), +J (blocks kickrejoin), # +K (no repeat messages), +d (no nick changes), and user modes: - # +B (bot), +C (blocks CTCP), +D (deaf), +V (no invites), +I (hides channel list) + # +B (bot), +C (blocks CTCP), +V (no invites), +I (hides channel list) if self.serverdata.get('use_elemental_modes'): elemental_cmodes = {'hiddenbans': 'u', 'nokick': 'E', 'kicknorejoin': 'J', 'repeat': 'K', 'nonick': 'd', @@ -298,8 +298,7 @@ class TS6Protocol(TS6BaseProtocol): self.cmodes.update(elemental_cmodes) self.cmodes['*D'] += ''.join(elemental_cmodes.values()) - elemental_umodes = {'noctcp': 'C', 'deaf': 'D', 'bot': 'B', 'noinvite': 'V', - 'hidechans': 'I'} + elemental_umodes = {'noctcp': 'C', 'bot': 'B', 'noinvite': 'V', 'hidechans': 'I'} self.umodes.update(elemental_umodes) self.umodes['*D'] += ''.join(elemental_umodes.values())