Change to Config.pm to return the correct @idds
This commit is contained in:
parent
78ec0debf6
commit
311b8dde4b
@ -63,7 +63,7 @@ sub allowed_chat_ids {
|
|||||||
my ($self) = @_;
|
my ($self) = @_;
|
||||||
my $raw = $self->get('bot', 'allowed_chat_ids') // '';
|
my $raw = $self->get('bot', 'allowed_chat_ids') // '';
|
||||||
my @ids = grep { /^\d+$/ } map { s/^\s+|\s+$//gr } split /,/, $raw;
|
my @ids = grep { /^\d+$/ } map { s/^\s+|\s+$//gr } split /,/, $raw;
|
||||||
return \@ids;
|
return @ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user