mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
relay: hotfix to fix KILL handling of relay clients
This commit is contained in:
parent
de36c7a62a
commit
d6e6e56e03
@ -607,7 +607,7 @@ utils.add_hook(handle_topic, 'TOPIC')
|
|||||||
def handle_kill(irc, numeric, command, args):
|
def handle_kill(irc, numeric, command, args):
|
||||||
target = args['target']
|
target = args['target']
|
||||||
userdata = args['userdata']
|
userdata = args['userdata']
|
||||||
realuser = getLocalUser(irc, target)
|
realuser = getLocalUser(irc, target) or userdata.__dict__.get('remote')
|
||||||
log.debug('(%s) relay handle_kill: realuser is %r', irc.name, realuser)
|
log.debug('(%s) relay handle_kill: realuser is %r', irc.name, realuser)
|
||||||
# Target user was remote:
|
# Target user was remote:
|
||||||
if realuser and realuser[0] != irc.name:
|
if realuser and realuser[0] != irc.name:
|
||||||
|
Loading…
Reference in New Issue
Block a user