mirror of
https://github.com/jlu5/PyLink.git
synced 2025-10-15 07:57:21 +02:00
relay: only send RAW_MODES payloads to networks without can-spawn-clients
This commit is contained in:
parent
15be760b19
commit
ffc734d8e2
@ -1444,6 +1444,7 @@ def handle_mode(irc, numeric, command, args):
|
|||||||
remotesender = get_remote_user(irc, remoteirc, numeric, spawn_if_missing=False) or \
|
remotesender = get_remote_user(irc, remoteirc, numeric, spawn_if_missing=False) or \
|
||||||
get_remote_sid(remoteirc, irc) or remoteirc.sid
|
get_remote_sid(remoteirc, irc) or remoteirc.sid
|
||||||
|
|
||||||
|
if not remoteirc.has_cap('can-spawn-clients'):
|
||||||
friendly_modes = []
|
friendly_modes = []
|
||||||
for modepair in modes:
|
for modepair in modes:
|
||||||
if modepair[0][-1] in irc.prefixmodes:
|
if modepair[0][-1] in irc.prefixmodes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user