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

relay: don't relay kill->kick when remotechan is None

This commit is contained in:
James Lu 2018-07-18 18:45:49 -07:00
parent e7b0458091
commit 12f6bb5e18

View File

@ -1946,6 +1946,8 @@ def handle_kill(irc, numeric, command, args):
def _relay_kill_to_kick(origirc, remoteirc, rtarget):
# Forward as a kick to each present relay client
remotechan = get_remote_channel(origirc, remoteirc, homechan)
if not remotechan:
return
rsender = get_relay_server_sid(remoteirc, irc, spawn_if_missing=False) or \
remoteirc.sid
log.debug('(%s) relay.handle_kill: forwarding kill to %s/%s@%s as '