diff --git a/plugins/relay.py b/plugins/relay.py index 006e97b..4309457 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -607,7 +607,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: