3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01: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 = ''; my $text = '';
foreach my $func (sort keys %{$self->{funcs}}) { 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"; $text .= "$func: $self->{funcs}->{$func}->{desc}.\n";
} }
} }