mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
Refresher: ignore more types of redefined subroutines
This commit is contained in:
parent
f067723c4a
commit
a63a5308d5
@ -29,7 +29,7 @@ sub refresh {
|
||||
local $SIG{__WARN__} = sub {
|
||||
my $warning = shift;
|
||||
warn $warning and return if $warning =~ /Can't undef active/;
|
||||
warn $warning and return if $warning =~ /Subroutine \w+ redefined/;
|
||||
warn $warning and return if $warning =~ /subroutine .* redefined/i;
|
||||
$refresh_error = $warning;
|
||||
$refresh_error =~ s/\s+Compilation failed in require at \/usr.*//;
|
||||
$refresh_error =~ s/in \@INC.*/in \@INC/;
|
||||
|
Loading…
Reference in New Issue
Block a user