zephyr_mirror: Support the empty string in blue as our loop detection technique.
(imported from commit 4f9c77df7479bfa485dac381514ee2c591ce09ef)
This commit is contained in:
parent
dc0bc84d4d
commit
6d8a6ebeab
|
@ -214,8 +214,12 @@ def process_notice(notice, log):
|
||||||
return
|
return
|
||||||
|
|
||||||
if isinstance(zsig, str):
|
if isinstance(zsig, str):
|
||||||
# Check for width unicode character u'\u200B'.encode("utf-8")
|
# Check the loop suppression method of having a zsig ending
|
||||||
if u'\u200B'.encode("utf-8") in zsig:
|
# 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!" % \
|
print "%s: zephyr=>humbug: Skipping message from Humbug!" % \
|
||||||
(datetime.datetime.now())
|
(datetime.datetime.now())
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue