summaryrefslogtreecommitdiffstats
path: root/extensions/AntiSpam/lib
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-05-22 07:31:14 +0200
committerByron Jones <glob@mozilla.com>2014-05-22 07:31:14 +0200
commit54cc754a164f2ee7249b716239b53ca42cc0650a (patch)
treeb8d4d27c2e6279371e2c51b8d1436656d03814c1 /extensions/AntiSpam/lib
parente1aea961a9dd83d6d14b4e45cbf4a70b00fbe18c (diff)
downloadbugzilla-54cc754a164f2ee7249b716239b53ca42cc0650a.tar.gz
bugzilla-54cc754a164f2ee7249b716239b53ca42cc0650a.tar.xz
Bug 1003950: automatically disable accounts based on the number of comments tagged as "abusive"
Diffstat (limited to 'extensions/AntiSpam/lib')
-rw-r--r--extensions/AntiSpam/lib/Config.pm27
1 files changed, 24 insertions, 3 deletions
diff --git a/extensions/AntiSpam/lib/Config.pm b/extensions/AntiSpam/lib/Config.pm
index dc3e2820f..c8e1255c2 100644
--- a/extensions/AntiSpam/lib/Config.pm
+++ b/extensions/AntiSpam/lib/Config.pm
@@ -36,9 +36,30 @@ sub get_param_list {
name => 'antispam_spammer_disable_text',
type => 'l',
default =>
- "This account has been automatically disabled as a result of a " .
- "high number of spam comments.\n\nPlease contact the address at ".
- "the end of this message if you believe this to be an error."
+ "This account has been automatically disabled as a result of " .
+ "a high number of spam comments.<br>\n<br>\n" .
+ "Please contact the address at the end of this message if " .
+ "you believe this to be an error."
+ },
+ {
+ name => 'antispam_abusive_comment_count',
+ type => 't',
+ default => '5',
+ checker => \&check_numeric
+ },
+ {
+ name => 'antispam_abusive_disable_text',
+ type => 'l',
+ default =>
+ "This account has been automatically disabled as a result of " .
+ "a high number of comments tagged as abusive.<br>\n<br>\n" .
+ "All interactions on Bugzilla should follow our " .
+ "<a href=\"https://bugzilla.mozilla.org/page.cgi?id=etiquette.html\">" .
+ "etiquette guidelines</a>.<br>\n<br>\n" .
+ "Please contact the address at the end of this message if you " .
+ "believe this to be an error, or if you would like your account " .
+ "reactivated in order to interact within our etiquette " .
+ "guidelines."
},
);