diff options
| author | 2015-12-11 09:01:29 +0400 | |
|---|---|---|
| committer | 2015-12-11 09:01:29 +0400 | |
| commit | 5b8d0451bb5f092372c65ad59e5cc28b501e3c7e (patch) | |
| tree | 8ea814bd4fec6d666743b7a314e0744f9b5c4297 | |
| parent | 2e5c3b973d5bc35253f5aa046ca055eb97eae680 (diff) | |
Fix warnings for newer perl
| -rw-r--r-- | lib/ASM/DB.pm | 2 | ||||
| -rwxr-xr-x | meta.pl | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/ASM/DB.pm b/lib/ASM/DB.pm index 86a1c78..5ed239b 100644 --- a/lib/ASM/DB.pm +++ b/lib/ASM/DB.pm @@ -93,7 +93,7 @@ sub actionlog $host = $event->{host}; } elsif (($event->{type} eq 'part') && ($event->{args}->[0] =~ /^requested by (\S+) \((.*)\)/)) { $bynick = $1; - $reason = $2 unless (lc $reason eq lc $event->{nick}); + $reason = $2 unless (lc $2 eq lc $event->{nick}); $action = 'remove'; $nick = $event->{nick}; $user = $event->{user}; @@ -2,6 +2,7 @@ use strict; use warnings; +no if $] >= 5.017011, warnings => 'experimental::smartmatch'; use FindBin; use lib "$FindBin::Bin/lib";; |
