1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 10:35:41 -04:00

Fix for prod

This commit is contained in:
Ryan Voots 2017-05-13 01:25:18 -04:00
parent 75555141ee
commit e2c06a8eeb

View file

@ -109,7 +109,7 @@ sub command {
} elsif ($command eq 'banuser') {
my $paste = $args[0];
if (my ($id) = ($paste =~ m{^(?:(?:https?://(?:[a-z\.]+)perlbot.pl/p(?:astebin)?/([^/]{6,})/?)|([^/]+))$}g)) {
if (my ($id) = ($paste =~ m{^(?:(?:https?://(?:[a-z\.]+)?perlbot.pl/p(?:astebin)?/([^/]{6,})/?)|([^/]+))$}g)) {
my $response = $self->ban_user_paste($env, $id, $who, $where);
return ("handled", $response);
} else {
@ -118,7 +118,7 @@ sub command {
} elsif ($command eq 'banasn') {
my $paste = $args[0];
if (my ($id) = ($paste =~ m{^(?:(?:https?://(?:[a-z\.]+)perlbot.pl/p(?:astebin)?/([^/]{6,})/?)|([^/]+))$}g)) {
if (my ($id) = ($paste =~ m{^(?:(?:https?://(?:[a-z\.]+)?perlbot.pl/p(?:astebin)?/([^/]{6,})/?)|([^/]+))$}g)) {
my $response = $self->ban_asn_paste($env, $id, $who, $where);
return ("handled", $response);
} else {