3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

relay: only send RAW_MODES payloads to networks without can-spawn-clients

This commit is contained in:
James Lu 2017-08-18 15:50:59 -07:00
parent 15be760b19
commit ffc734d8e2

View File

@ -1444,6 +1444,7 @@ def handle_mode(irc, numeric, command, args):
remotesender = get_remote_user(irc, remoteirc, numeric, spawn_if_missing=False) or \
get_remote_sid(remoteirc, irc) or remoteirc.sid
if not remoteirc.has_cap('can-spawn-clients'):
friendly_modes = []
for modepair in modes:
if modepair[0][-1] in irc.prefixmodes: