From 2e6915079051ac48bfe72f9812d4752b91fcedaf Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Mon, 5 Nov 2012 00:44:08 -0500 Subject: [PATCH] zephyr_mirror: do case-insensitive compare when checking for instanced personals Users were seeing "[-i PERSONAL]" prepended to mirrored zephyrs. (imported from commit 82f1c93705f4000607ad8fd733c9fb5045619b10) --- bots/zephyr_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index 3da5eb9..d3d59b4 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -282,7 +282,7 @@ def process_notice(notice, log): zeph["subject"] = "personal" # Add instances in for instanced personals - if zeph['type'] == "personal" and notice.instance != "personal": + if zeph['type'] == "personal" and notice.instance.lower() != "personal": zeph["content"] = "[-i %s]" % (notice.instance,) + "\n" + zeph["content"] zeph = decode_unicode_byte_strings(zeph)