3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-03 16:14:10 +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:
James Lu 2019-08-22 18:40:23 -07:00
parent f3569b4fd9
commit 452a47d4f1

View File

@ -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 # First, we expand extbans from the local IRCd into a named mode and argument pair. Then, we
# can figure out how to relay it. # can figure out how to relay it.
for extban_name, extban_prefix in irc.extbans_acting.items(): for extban_name, extban_prefix in irc.extbans_acting.items():
# Acting extbans are only supported with +b (e.g. +b m:n!u@h) # Acting extbans are generally only supported with +b and +e
if name == 'ban' and arg.startswith(extban_prefix): if name in {'ban', 'banexception'} and arg.startswith(extban_prefix):
orig_supported_char, old_arg = supported_char, arg orig_supported_char, old_arg = supported_char, arg
if extban_name in remoteirc.cmodes: if extban_name in remoteirc.cmodes: