mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay: don't relay kill->kick when remotechan is None
This commit is contained in:
parent
e7b0458091
commit
12f6bb5e18
@ -1946,6 +1946,8 @@ def handle_kill(irc, numeric, command, args):
|
|||||||
def _relay_kill_to_kick(origirc, remoteirc, rtarget):
|
def _relay_kill_to_kick(origirc, remoteirc, rtarget):
|
||||||
# Forward as a kick to each present relay client
|
# Forward as a kick to each present relay client
|
||||||
remotechan = get_remote_channel(origirc, remoteirc, homechan)
|
remotechan = get_remote_channel(origirc, remoteirc, homechan)
|
||||||
|
if not remotechan:
|
||||||
|
return
|
||||||
rsender = get_relay_server_sid(remoteirc, irc, spawn_if_missing=False) or \
|
rsender = get_relay_server_sid(remoteirc, irc, spawn_if_missing=False) or \
|
||||||
remoteirc.sid
|
remoteirc.sid
|
||||||
log.debug('(%s) relay.handle_kill: forwarding kill to %s/%s@%s as '
|
log.debug('(%s) relay.handle_kill: forwarding kill to %s/%s@%s as '
|
||||||
|
Loading…
Reference in New Issue
Block a user