mirror of
https://github.com/perlbot/perlbuut-pastebin
synced 2025-06-07 22:26:01 -04:00
static spamlist update
This commit is contained in:
parent
2d305be097
commit
d121b3ea28
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ sub api_post_paste {
|
|||
# warn "I thought this was spam! $type";
|
||||
# } else {
|
||||
if ($channel) { # TODO config for allowing announcements
|
||||
my $words = qr/nigger|jew|spic|tranny|trannies|fuck|shit|piss|cunt|asshole/i;
|
||||
my $words = qr/nigger|jew|spic|tranny|trannies|fuck|shit|piss|cunt|asshole|hitler|klan|klux/i;
|
||||
unless ($code =~ $words || $who =~ $words || $desc =~ $words) {
|
||||
$c->perlbot->announce($channel, $who, substr($desc, 0, 40), $c->req->url->base()."/p/$id");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue