From e0c77efb3fbc63090d45ee4c1e5cde0b3b71b0b9 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 30 Jul 2013 16:48:20 -0400 Subject: [PATCH] Escape @ when mirroring content back to Zephyr. (imported from commit 0ab58b5e8a30c66fb6aeaccaebbe498092de1cd5) --- bots/zephyr_mirror_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index d7c2834..bea6d17 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -503,7 +503,7 @@ def send_unauthed_zephyr(zwrite_args, content): def forward_to_zephyr(message): wrapper = textwrap.TextWrapper(break_long_words=False, break_on_hyphens=False) wrapped_content = "\n".join("\n".join(wrapper.wrap(line)) - for line in message["content"].split("\n")) + for line in message["content"].replace("@", "@@").split("\n")) zwrite_args = ["zwrite", "-n", "-s", message["sender_full_name"], "-F", "Zephyr error: See http://zephyr.1ts.org/wiki/df"] if message['type'] == "stream":