Escape @ when mirroring content back to Zephyr.

(imported from commit 0ab58b5e8a30c66fb6aeaccaebbe498092de1cd5)
This commit is contained in:
Tim Abbott 2013-07-30 16:48:20 -04:00
parent 2fd94c5e63
commit e0c77efb3f

View file

@ -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":