1
0
Fork 0
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:
Ryan Voots 2017-05-11 15:40:03 -04:00
parent 2d305be097
commit d121b3ea28

View file

@ -61,7 +61,7 @@ sub api_post_paste {
# warn "I thought this was spam! $type"; # warn "I thought this was spam! $type";
# } else { # } else {
if ($channel) { # TODO config for allowing announcements 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) { unless ($code =~ $words || $who =~ $words || $desc =~ $words) {
$c->perlbot->announce($channel, $who, substr($desc, 0, 40), $c->req->url->base()."/p/$id"); $c->perlbot->announce($channel, $who, substr($desc, 0, 40), $c->req->url->base()."/p/$id");
} }