From 35dcab8535b750438ceb415c1c99a6589b33e3df Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 1 Aug 2012 18:32:58 -0400 Subject: [PATCH] Don't notify filer. --- earwigbot/tasks/drn_clerkbot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/earwigbot/tasks/drn_clerkbot.py b/earwigbot/tasks/drn_clerkbot.py index 93bf4c4..9cd8e98 100644 --- a/earwigbot/tasks/drn_clerkbot.py +++ b/earwigbot/tasks/drn_clerkbot.py @@ -485,6 +485,8 @@ class DRNClerkBot(Task): user = re.search("[:*#]{,5} \{\{User\|(.*?)\}\}", line) if user: party = user.group(1).replace("_", " ").strip() + if party == case.file_user: + continue notice = _Notice("User talk:" + party, template, too_late) notices.append(notice) @@ -633,7 +635,7 @@ class DRNClerkBot(Task): except exceptions.PageNotFoundError: text = "" if notice.too_late and notice.too_late in text: - log = u"Skipped [[{0}]]; was already notified with '{1}'" + log = u"Skipping [[{0}]]; was already notified with '{1}'" self.logger.info(log.format(page.title, template)) continue text += ("\n" if text else "") + template