mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-03 08:04:07 +01:00
relay: handle acting extbans for +e too
InspIRCd acting extbans and UnrealIRCd ~m are both used in theis context.
This commit is contained in:
parent
f3569b4fd9
commit
452a47d4f1
@ -1156,8 +1156,8 @@ def get_supported_cmodes(irc, remoteirc, channel, modes):
|
||||
# First, we expand extbans from the local IRCd into a named mode and argument pair. Then, we
|
||||
# can figure out how to relay it.
|
||||
for extban_name, extban_prefix in irc.extbans_acting.items():
|
||||
# Acting extbans are only supported with +b (e.g. +b m:n!u@h)
|
||||
if name == 'ban' and arg.startswith(extban_prefix):
|
||||
# Acting extbans are generally only supported with +b and +e
|
||||
if name in {'ban', 'banexception'} and arg.startswith(extban_prefix):
|
||||
orig_supported_char, old_arg = supported_char, arg
|
||||
|
||||
if extban_name in remoteirc.cmodes:
|
||||
|
Loading…
Reference in New Issue
Block a user