zephyr_mirror: Clean up old mirroring duplicate suppression.
(imported from commit ada8b4747d329da8b84acc8d3ff4fa2a4d653938)
This commit is contained in:
parent
b69201455c
commit
e112db6702
|
@ -226,14 +226,8 @@ 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
|
|
||||||
#
|
|
||||||
# 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())
|
(datetime.datetime.now())
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue