mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-25 09:50:39 +01:00
relay: explicitly don't sync modes originating from clientbot
This commit is contained in:
parent
62f78a60a9
commit
dc364b3e9e
@ -1210,6 +1210,11 @@ for c in ('CHGHOST', 'CHGNAME', 'CHGIDENT'):
|
|||||||
def handle_mode(irc, numeric, command, args):
|
def handle_mode(irc, numeric, command, args):
|
||||||
target = args['target']
|
target = args['target']
|
||||||
modes = args['modes']
|
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():
|
for name, remoteirc in world.networkobjects.copy().items():
|
||||||
if irc.name == name or not remoteirc.connected.is_set():
|
if irc.name == name or not remoteirc.connected.is_set():
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user