bridge_with_irc: Prefix zulip->irc message with sender full name.
This commit is contained in:
parent
836a51a8bf
commit
5b704b7c1c
|
@ -51,6 +51,7 @@ class IRCBot(irc.bot.SingleServerIRCBot):
|
||||||
in_the_specified_stream = msg["display_recipient"] == self.stream
|
in_the_specified_stream = msg["display_recipient"] == self.stream
|
||||||
at_the_specified_subject = msg["subject"].casefold() == self.topic.casefold()
|
at_the_specified_subject = msg["subject"].casefold() == self.topic.casefold()
|
||||||
if in_the_specified_stream and at_the_specified_subject:
|
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)
|
send = lambda x: c.privmsg(self.channel, x)
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue