mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-24 11:42:35 +01:00
FactoidCommands: fix factfind
to show usage message if no arguments
This commit is contained in:
parent
39d1c1e7ee
commit
a7df1a3be7
@ -1250,7 +1250,7 @@ sub factfind {
|
||||
my ($from, $nick, $user, $host, $arguments) = @_;
|
||||
|
||||
my $usage = "Usage: factfind [-channel channel] [-owner regex] [-editby regex] [-refby regex] [-regex] [text]";
|
||||
return $usage if not defined $arguments;
|
||||
return $usage if not length $arguments;
|
||||
|
||||
my $factoids = $self->{pbot}->{factoids}->{factoids};
|
||||
my ($channel, $owner, $refby, $editby, $use_regex);
|
||||
|
Loading…
Reference in New Issue
Block a user