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

relay: explicitly don't sync modes originating from clientbot

This commit is contained in:
James Lu 2016-07-24 11:11:54 -07:00
parent 62f78a60a9
commit dc364b3e9e

View File

@ -1210,6 +1210,11 @@ for c in ('CHGHOST', 'CHGNAME', 'CHGIDENT'):
def handle_mode(irc, numeric, command, args):
target = args['target']
modes = args['modes']
if irc.protoname == 'clientbot':
# We don't sync modes with clientbot networks... that's just too much of a PITA
return
for name, remoteirc in world.networkobjects.copy().items():
if irc.name == name or not remoteirc.connected.is_set():
continue