From 583e1174d68b9fc6bcead711e48f2e8cc0120def Mon Sep 17 00:00:00 2001 From: urlbot Date: Sat, 11 Oct 2014 16:31:09 +0200 Subject: [PATCH] ignore lines that are probably the bots own log lines --- urlbot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/urlbot.py b/urlbot.py index 8d3b186..82919e4 100755 --- a/urlbot.py +++ b/urlbot.py @@ -223,11 +223,15 @@ def parse_delete(filepath): if content.startswith('PRIV#'): parse_pn(content) return - + if 'nospoiler' in content: # logger('info', "no spoiler for: " + content) return + if sys.argv[0] in content: + logger('info', 'silenced, this is my own log') + return + if True != extract_url(content): plugins.data_parse_commands(content) plugins.data_parse_other(content)