diff options
Diffstat (limited to 'lib/Fripost/Commands')
-rw-r--r-- | lib/Fripost/Commands/search_alias.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Fripost/Commands/search_alias.pm b/lib/Fripost/Commands/search_alias.pm index fc1959d..2241436 100644 --- a/lib/Fripost/Commands/search_alias.pm +++ b/lib/Fripost/Commands/search_alias.pm @@ -29,10 +29,8 @@ sub perform_search { } sub main { - my $ldap = shift; - my $conf = shift; - - my $search = $_[0]; + my ($ldap, $conf, $search) = @_; + $search //= ''; my $f = $conf->{from}; my $g = $conf->{goto}; |