3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 20:52:42 +01:00

relay: don't relay as text modes being set on netburst (#627)

This commit is contained in:
James Lu 2018-09-21 21:53:34 -07:00
parent 2f4476eb0c
commit a3e18081a6

View File

@ -1751,8 +1751,11 @@ def handle_mode(irc, numeric, command, args):
get_relay_server_sid(remoteirc, irc) or remoteirc.sid
if not remoteirc.has_cap('can-spawn-clients'):
if numeric in irc.servers and not irc.servers[numeric].has_eob:
log.debug('(%s) Not relaying modes from server %s/%s to %s as it has not finished bursting',
irc.name, numeric, irc.get_friendly_name(numeric), remoteirc.name)
else:
friendly_modes = []
for modepair in modes:
modechar = modepair[0][-1]
if modechar in irc.prefixmodes: