jabber_mirror: Change character used for loop detection

Previously, we were using U+1B80, which is 'SUNDANESE SIGN PANYECEK' (i.e., an
assigned character).  U+1FFFE is a non-character (i.e., free for internal use)
on Plane 1.

(imported from commit f93d2401733afb96b6d717a7f659c011299071df)
This commit is contained in:
Zev Benjamin 2014-03-02 22:43:16 -05:00
parent f239b02027
commit 6609291d54

View file

@ -118,7 +118,7 @@ class JabberToZulipBot(ClientXMPP):
logging.exception("Error forwarding Jabber => Zulip")
def private(self, msg):
if options.mode == 'public' or msg['thread'] == u'\u1B80':
if options.mode == 'public' or msg['thread'] == u'\u1FFFE':
return
sender = jid_to_zulip(msg["from"])
recipient = jid_to_zulip(msg["to"])
@ -134,7 +134,7 @@ class JabberToZulipBot(ClientXMPP):
logging.error(ret)
def group(self, msg):
if options.mode == 'personal' or msg["thread"] == u'\u1B80':
if options.mode == 'personal' or msg["thread"] == u'\u1FFFE':
return
subject = msg["subject"]
@ -199,7 +199,7 @@ class ZulipToJabberBot(object):
mto = jabber_recipient,
mbody = msg['content'],
mtype = 'groupchat')
outgoing['thread'] = u'\u1B80'
outgoing['thread'] = u'\u1FFFE'
outgoing.send()
def private_message(self, msg):
@ -213,7 +213,7 @@ class ZulipToJabberBot(object):
mto = jabber_recipient,
mbody = msg['content'],
mtype = 'chat')
outgoing['thread'] = u'\u1B80'
outgoing['thread'] = u'\u1FFFE'
outgoing.send()
def process_subscription(self, event):