summaryrefslogtreecommitdiffstats
path: root/lib/ASM/Util.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ASM/Util.pm')
-rw-r--r--lib/ASM/Util.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ASM/Util.pm b/lib/ASM/Util.pm
index 325762b..c23fbf6 100644
--- a/lib/ASM/Util.pm
+++ b/lib/ASM/Util.pm
@@ -1,4 +1,5 @@
package ASM::Util;
+no autovivification;
use Array::Utils qw(:all);
use POSIX qw(strftime);
use warnings;
@@ -301,7 +302,7 @@ sub notRestricted {
sub accountToNicks {
my ($module, $account) = @_;
$account =~ s/^\$a://;
- my @ret = grep( { (lc ($account) eq lc ($::sn{$_}->{account})) } keys %::sn );
+ my @ret = grep( { (lc ($account) eq lc ($::sn{$_}->{account} // '')) } keys %::sn );
return \@ret;
}