zephyr_mirror: Make Webathena work for golem.

(imported from commit 6f8bf1f44c521b22c9fc990711d2821e5a60761d)
This commit is contained in:
Tim Abbott 2013-08-28 15:58:34 -04:00
parent 4a8311b77b
commit 94c74c0f9b

View file

@ -621,6 +621,11 @@ Feedback button or at support@zulip.com."""
for line in message["content"].replace("@", "@@").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"] zwrite_args = ["zwrite", "-n", "-s", message["sender_full_name"], "-F", "Zephyr error: See http://zephyr.1ts.org/wiki/df"]
# Hack to make ctl's fake username setup work :)
if message['type'] == "stream" and zulip_account_email == "ctl@mit.edu":
zwrite_args.extend(["-S", "ctl"])
if message['type'] == "stream": if message['type'] == "stream":
zephyr_class = message["display_recipient"] zephyr_class = message["display_recipient"]
instance = message["subject"] instance = message["subject"]