3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

FactoidCommands: fix factfind to show usage message if no arguments

This commit is contained in:
Pragmatic Software 2020-03-23 17:49:50 -07:00
parent 39d1c1e7ee
commit a7df1a3be7

View File

@ -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);