bridge_with_irc: Disable echo on Zulip -> IRC.
This commit is contained in:
parent
edcf1fd8e9
commit
116a1228ae
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue