From f63d17f94536ad31c4760ae1cc47d31cc43fb63d Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 15 Aug 2015 05:53:44 -0700 Subject: [PATCH] relay: don't relay kicks if the target has no client on the remote network? --- plugins/relay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/relay.py b/plugins/relay.py index a783522..0cbc85f 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -409,6 +409,8 @@ def handle_kick(irc, source, command, args): "(half)opped." % channel, notice=True) return + if not real_target: + return # Propogate the kick! if real_kicker: log.debug('(%s) Relay kick: Kicking %s from channel %s via %s on behalf of %s/%s', irc.name, real_target, remotechan,real_kicker, kicker, irc.name)