From 94c74c0f9b28fd78ded6319d65a637acda4bc985 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 28 Aug 2013 15:58:34 -0400 Subject: [PATCH] zephyr_mirror: Make Webathena work for golem. (imported from commit 6f8bf1f44c521b22c9fc990711d2821e5a60761d) --- bots/zephyr_mirror_backend.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 613c63c..d263a48 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -621,6 +621,11 @@ Feedback button or at support@zulip.com.""" 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"] + + # 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": zephyr_class = message["display_recipient"] instance = message["subject"]