From 3e706366bdcebc21d8f5321cfee00cc31f5a0aee Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 6 Jan 2017 16:45:48 -0800 Subject: [PATCH] relay: on Clientbot networks, don't relay prefix mode changes for the relayer bot Closes #366. --- plugins/relay.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/relay.py b/plugins/relay.py index fdbe2b4..b8446f0 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -776,6 +776,12 @@ def get_supported_cmodes(irc, remoteirc, channel, modes): "for network %r.", irc.name, modechar, arg, remoteirc.name) + if irc.protoname == 'clientbot' and irc.pseudoclient and arg == irc.pseudoclient.uid: + # Skip modesync on the main PyLink client. + log.debug("(%s) relay.get_supported_cmodes: filtering prefix change (%r, %r) on Clientbot relayer", + irc.name, name, arg) + break + # If the target is a remote user, get the real target # (original user). arg = get_orig_user(irc, arg, targetirc=remoteirc) or \