From 6609291d54b654b1121380c71f85551a2ba13d00 Mon Sep 17 00:00:00 2001
From: Zev Benjamin <zev@zulip.com>
Date: Sun, 2 Mar 2014 22:43:16 -0500
Subject: [PATCH] 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)
---
 bots/jabber_mirror.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bots/jabber_mirror.py b/bots/jabber_mirror.py
index daeafb83..34500d6a 100755
--- a/bots/jabber_mirror.py
+++ b/bots/jabber_mirror.py
@@ -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):