From 3f75fd1d9273dd744e3d0ec98968401db7e3ae1a Mon Sep 17 00:00:00 2001 From: William Heimbigner Date: Tue, 12 Jan 2016 15:05:56 -0700 Subject: Disable Autovivification in all the things, enable autoflush on STDOUT, fix some things in accountsToNicks --- lib/ASM/Util.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/ASM/Util.pm') 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; } -- cgit v1.2.3