jabber_mirror: Only mirror messages from streams that end in '/xmpp'
(imported from commit 5213d40063361ffcf073772580ac0f699228cb3f)
This commit is contained in:
parent
1b946b8565
commit
810b219f8c
|
@ -154,7 +154,11 @@ class ZulipToJabberBot(object):
|
|||
logging.exception("Exception forwarding Zulip => Jabber")
|
||||
|
||||
def stream_message(self, msg):
|
||||
room = stream_to_room(msg['display_recipient'])
|
||||
stream = msg['display_recipient']
|
||||
if not stream.endswith("/xmpp"):
|
||||
return
|
||||
|
||||
room = stream_to_room(stream)
|
||||
jabber_recipient = "%s@%s" % (room, options.conference_domain)
|
||||
outgoing = self.jabber.make_message(
|
||||
mto = jabber_recipient,
|
||||
|
|
Loading…
Reference in a new issue