3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-28 13:42:37 +01:00

relay: skip message prefixing when forwarding a message for a service client (#403)

This commit is contained in:
James Lu 2017-03-23 23:53:48 -07:00
parent feb9cce4ee
commit 90d3ac3cf6

View File

@ -1086,8 +1086,9 @@ def handle_messages(irc, numeric, command, args):
# No relay clone exists for the sender; route the message through our
# main client (or SID for notices).
# Skip "from:" formatting for servers; it's messy with longer hostnames
if numeric not in irc.servers:
# Skip "from:" formatting for servers; it's messy with longer hostnames.
# Also skip this formatting for servicebot relaying.
if numeric not in irc.servers and not irc.getServiceBot(numeric):
displayedname = irc.getFriendlyName(numeric)
real_text = '<%s/%s> %s' % (displayedname, irc.name, text)
else: