mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
relay: hotfix to fix KILL handling of relay clients
(cherry picked from commit d6e6e56e03
)
This commit is contained in:
parent
8b77956ab9
commit
f967f7a479
@ -601,7 +601,7 @@ utils.add_hook(handle_topic, 'TOPIC')
|
||||
def handle_kill(irc, numeric, command, args):
|
||||
target = args['target']
|
||||
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)
|
||||
# Target user was remote:
|
||||
if realuser and realuser[0] != irc.name:
|
||||
|
Loading…
Reference in New Issue
Block a user