bridge_with_irc: Prefix zulip->irc message with sender full name.

This commit is contained in:
rht 2018-12-16 05:16:49 +00:00 committed by Tim Abbott
parent 836a51a8bf
commit 5b704b7c1c

View file

@ -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