mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-02 15:34:05 +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 = '';
|
||||
|
||||
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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user