From 24b8a7eccc002257e024c1d9bf1818ea41b4afc7 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 3 Dec 2012 15:33:33 -0500 Subject: [PATCH] zephyr_mirror: Fix case issue in subscriptions syncing. (imported from commit e87ddab3684f4acae940ee831caadbc346458a11) --- bots/zephyr_mirror_backend.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index d9f5413..f6ae92b 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -570,7 +570,7 @@ def add_humbug_subscriptions(verbose): zephyr_subscriptions = set() skipped = set() for (cls, instance, recipient) in parse_zephyr_subs(verbose=verbose): - if cls == "message": + if cls.lower() == "message": if recipient != "*": # We already have a (message, *, you) subscription, so # these are redundant @@ -584,7 +584,7 @@ def add_humbug_subscriptions(verbose): # instead of subscribing to stream "message" on humbug zephyr_subscriptions.add(instance) continue - elif cls == "mail" and instance == "inbox": + elif cls.lower() == "mail" and instance.lower() == "inbox": # We forward mail zephyrs, so no need to print a warning. continue elif len(cls) > 30: