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, 1 insertions, 2 deletions
diff --git a/lib/ASM/Util.pm b/lib/ASM/Util.pm
index 55c49ab..e96aebd 100644
--- a/lib/ASM/Util.pm
+++ b/lib/ASM/Util.pm
@@ -336,8 +336,7 @@ sub notRestricted {
sub accountToNicks {
my ($module, $account) = @_;
$account =~ s/^\$a://;
- my @ret = grep( { (lc ($account) eq lc ($::sn{$_}->{account} // '')) } keys %::sn );
- return \@ret;
+ return $::sa{$account};
}
return 1;