mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 11:39:25 +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:
parent
597685d77c
commit
209fa9722c
@ -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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user