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:
parent
84fcc7fd66
commit
4e63f8435e
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user