3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-04 18:38:47 +02:00

NickList: * should not be greedy

This commit is contained in:
Pragmatic Software 2020-01-22 16:53:18 -08:00
parent f2590ec83b
commit 9fb0d5d8bc

View File

@ -143,7 +143,7 @@ sub set_meta {
if (not exists $self->{nicklist}->{$channel} or not exists $self->{nicklist}->{$channel}->{$nick}) {
if (exists $self->{nicklist}->{$channel} and $nick =~ m/[*?]/) {
my $regex = quotemeta $nick;
$regex =~ s/\\\*/.*/g;
$regex =~ s/\\\*/.*?/g;
$regex =~ s/\\\?/./g;
my $found = 0;