From 5b704b7c1cc57d6dcae6028f66e7001414775855 Mon Sep 17 00:00:00 2001 From: rht Date: Sun, 16 Dec 2018 05:16:49 +0000 Subject: [PATCH] bridge_with_irc: Prefix zulip->irc message with sender full name. --- zulip/integrations/bridge_with_irc/irc_mirror_backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/zulip/integrations/bridge_with_irc/irc_mirror_backend.py b/zulip/integrations/bridge_with_irc/irc_mirror_backend.py index e78104f..afb4fc2 100644 --- a/zulip/integrations/bridge_with_irc/irc_mirror_backend.py +++ b/zulip/integrations/bridge_with_irc/irc_mirror_backend.py @@ -51,6 +51,7 @@ class IRCBot(irc.bot.SingleServerIRCBot): in_the_specified_stream = msg["display_recipient"] == self.stream at_the_specified_subject = msg["subject"].casefold() == self.topic.casefold() if in_the_specified_stream and at_the_specified_subject: + msg["content"] = ("@**%s**: " % msg["sender_full_name"]) + msg["content"] send = lambda x: c.privmsg(self.channel, x) else: return