bridge_with_irc: Disable echo on Zulip -> IRC.

This commit is contained in:
rht 2018-08-13 07:56:15 +01:00 committed by Tim Abbott
parent edcf1fd8e9
commit 116a1228ae

View file

@ -41,6 +41,9 @@ class IRCBot(irc.bot.SingleServerIRCBot):
def forward_to_irc(msg):
# type: (Dict[str, Any]) -> None
if msg["sender_email"] == self.zulip_client.email:
# Do not forward echo
return
if msg["type"] == "stream":
send = lambda x: c.privmsg(self.channel, x)
else: