zephyr_mirror: Clean up old mirroring duplicate suppression.
(imported from commit ada8b4747d329da8b84acc8d3ff4fa2a4d653938)
This commit is contained in:
parent
b69201455c
commit
e112db6702
|
@ -226,16 +226,10 @@ def process_notice(notice, log):
|
|||
# skip PING messages
|
||||
return
|
||||
|
||||
if isinstance(zsig, str):
|
||||
# Check the loop suppression method of having a zsig ending
|
||||
# with the empty string rendered in blue
|
||||
#
|
||||
# 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
|
||||
if zsig.endswith("@(@color(blue))"):
|
||||
print "%s: zephyr=>humbug: Skipping message we got from Humbug!" % \
|
||||
(datetime.datetime.now())
|
||||
return
|
||||
|
||||
zephyr_class = notice.cls.lower()
|
||||
|
||||
|
|
Loading…
Reference in a new issue