3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +01:00

inspircd: move definitions for cmodes +J and +E to kicknorejoin_insp and repeat_insp

These use InspIRCd specific arguments which don't map cleanly to other IRCds. #559

(cherry picked from commit ec3b230eab)
This commit is contained in:
James Lu 2017-12-18 13:05:12 -08:00
parent 597685d77c
commit 209fa9722c

View File

@ -443,7 +443,7 @@ class InspIRCdProtocol(TS6BaseProtocol):
# Strip c_ prefixes to be consistent with other protocols.
name = name.lstrip('c_')
if name == 'reginvite': # Reginvite? That's a dumb name.
if name == 'reginvite': # Reginvite? That's an odd name.
name = 'regonly'
if name == 'founder': # Channel mode +q
@ -452,6 +452,11 @@ class InspIRCdProtocol(TS6BaseProtocol):
# but I personally prefer the latter.
name = 'owner'
if name in ('repeat', 'kicknorejoin'):
# Suffix modes using inspircd-specific arguments so that it can
# be safely relayed.
name += '_insp'
# We don't care about mode prefixes; just the mode char.
self.irc.cmodes[name] = char[-1]