3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 09:58:42 +02:00

FuncCommand: list now includes description in regex search

This commit is contained in:
Pragmatic Software 2019-08-24 19:35:56 -07:00
parent 84fcc7fd66
commit 4e63f8435e

View File

@ -101,7 +101,7 @@ sub func_list {
my $text = '';
foreach my $func (sort keys %{$self->{funcs}}) {
if ($func =~ m/$regex/i) {
if ($func =~ m/$regex/i or $self->{funcs}->{$func}->{desc} =~ m/$regex/i) {
$text .= "$func: $self->{funcs}->{$func}->{desc}.\n";
}
}