3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 20:22:45 +01:00

relay: don't relay kicks if the target has no client on the remote network?

This commit is contained in:
James Lu 2015-08-15 05:53:44 -07:00
parent cc7e52a190
commit f63d17f945

View File

@ -409,6 +409,8 @@ def handle_kick(irc, source, command, args):
"(half)opped." % channel, notice=True) "(half)opped." % channel, notice=True)
return return
if not real_target:
return
# Propogate the kick! # Propogate the kick!
if real_kicker: 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) 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)