zephyr_mirror: Clean up old mirroring duplicate suppression.

(imported from commit ada8b4747d329da8b84acc8d3ff4fa2a4d653938)
This commit is contained in:
Tim Abbott 2012-11-02 17:16:31 -04:00
parent b69201455c
commit e112db6702

View file

@ -226,16 +226,10 @@ def process_notice(notice, log):
# skip PING messages # skip PING messages
return return
if isinstance(zsig, str): if zsig.endswith("@(@color(blue))"):
# Check the loop suppression method of having a zsig ending print "%s: zephyr=>humbug: Skipping message we got from Humbug!" % \
# with the empty string rendered in blue (datetime.datetime.now())
# return
# Check for the old loop suppression mechanism of a width
# unicode character u'\u200B'.encode("utf-8").
if u'\u200B'.encode("utf-8") in zsig or zsig.endswith("@(@color(blue))"):
print "%s: zephyr=>humbug: Skipping message from Humbug!" % \
(datetime.datetime.now())
return
zephyr_class = notice.cls.lower() zephyr_class = notice.cls.lower()