mirror of
https://github.com/perlbot/perlbuut
synced 2025-06-07 10:35:41 -04:00
Fix for prod
This commit is contained in:
parent
75555141ee
commit
e2c06a8eeb
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue