X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Quotes.pm;h=97aa231603379b1d59a091ce575aae370b74b733;hb=ce53b2c4f6aaa57596f9fe28260219456ada4bc2;hp=bebc9bbcb0f3509bb765e6c7b51eb34a10454e0b;hpb=b232bb5a3520c656ac825a33328ecca76f1dd0f6;p=NDIRC.git diff --git a/Quotes.pm b/Quotes.pm index bebc9bb..97aa231 100644 --- a/Quotes.pm +++ b/Quotes.pm @@ -68,6 +68,10 @@ sub lastQuote { sub findQuote { my ($pattern,$type) = @_; my $matcher; + unless (defined $pattern){ + $ND::server->command("notice $ND::nick $type query | findqre uses regexes as query, findquote a substring match. Both are case insensitive"); + return; + } if ($type eq 'findqre'){ if (defined (eval 'm/$pattern/ix')){ $matcher = 'm/$pattern/ix';