zephyr_mirror: do case-insensitive compare when checking for instanced personals

Users were seeing "[-i PERSONAL]" prepended to mirrored zephyrs.

(imported from commit 82f1c93705f4000607ad8fd733c9fb5045619b10)
This commit is contained in:
Zev Benjamin 2012-11-05 00:44:08 -05:00
parent c68fb1f5ae
commit 2e69150790

View file

@ -282,7 +282,7 @@ def process_notice(notice, log):
zeph["subject"] = "personal" zeph["subject"] = "personal"
# Add instances in for instanced personals # 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["content"] = "[-i %s]" % (notice.instance,) + "\n" + zeph["content"]
zeph = decode_unicode_byte_strings(zeph) zeph = decode_unicode_byte_strings(zeph)