3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

relay: don't show the network name when routing kicks through a server

This is redundant, as relay has always spawned subservers for quite some time now.
This commit is contained in:
James Lu 2018-03-02 21:37:24 -08:00
parent 9f39e484da
commit 57f77c676d

View File

@ -1574,9 +1574,9 @@ def handle_kick(irc, source, command, args):
kname = irc.servers[kicker].name
else:
kname = irc.users.get(kicker).nick
text = "(%s/%s) %s" % (kname, irc.name, args['text'])
text = "(%s) %s" % (kname, args['text'])
except AttributeError:
text = "(<unknown kicker>@%s) %s" % (irc.name, args['text'])
text = "(<unknown kicker>) %s" % args['text']
rsid = rsid or remoteirc.sid # Fall back to the main PyLink SID if get_relay_server_sid() fails
remoteirc.kick(rsid, remotechan, real_target, text)