From 4d55c8ce73d28c0828ea744cd5221de59ec29550 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 5 Aug 2015 05:43:03 -0700 Subject: [PATCH] relay: announce KILL blocks once, and only once --- plugins/relay.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/relay.py b/plugins/relay.py index 642960d..68acb1b 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -632,11 +632,11 @@ def handle_kill(irc, numeric, command, args): log.debug('(%s) relay handle_kill: userpair: %s, %s', irc.name, modes, realuser) client = getRemoteUser(remoteirc, irc, realuser[1]) irc.proto.sjoinServer(irc, irc.sid, remotechan, [(modes, client)]) - if userdata and numeric in irc.users: - utils.msg(irc, numeric, "Your kill has to %s been blocked " - "because PyLink does not allow killing" - " users over the relay at this time." % \ - userdata.nick, notice=True) + if userdata and numeric in irc.users: + utils.msg(irc, numeric, "Your kill has to %s been blocked " + "because PyLink does not allow killing" + " users over the relay at this time." % \ + userdata.nick, notice=True) # Target user was local. else: # IMPORTANT: some IRCds (charybdis) don't send explicit QUIT messages