From 989c36132f671503a3abced0e089a8ec683c9949 Mon Sep 17 00:00:00 2001 From: "Paul W. Frields" Date: Fri, 7 Apr 2017 17:28:25 -0400 Subject: [PATCH] Review for PR on ansible I'm trying to add to the filter on the ircbot for Magazine so it doesn't output anything that concerns Council in Pagure. Is this right, or even sane? * * * --- roles/fedmsg/irc/templates/ircbot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/fedmsg/irc/templates/ircbot.py b/roles/fedmsg/irc/templates/ircbot.py index e55507c216..00d74e6fcc 100644 --- a/roles/fedmsg/irc/templates/ircbot.py +++ b/roles/fedmsg/irc/templates/ircbot.py @@ -447,12 +447,13 @@ config = dict( nickname='fm-magazine', {% endif %} channel='#fedora-magazine', - # If the word modularity appears in any message, forward it. + # If the word magazine appears in any message, forward it. filters=dict( topic=[ '^((?!(pagure|planet|badges|fas.group|mailman|meetbot\.meeting)).)*$', ], - body=['^((?!(magazine|Magazine)).)*$'], + body=['^((?!(magazine|Magazine)).)*$', + "u'namespace': u'Fedora-Council'"], ), ),