mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
NickList: * should not be greedy
This commit is contained in:
parent
f2590ec83b
commit
9fb0d5d8bc
@ -143,7 +143,7 @@ sub set_meta {
|
|||||||
if (not exists $self->{nicklist}->{$channel} or not exists $self->{nicklist}->{$channel}->{$nick}) {
|
if (not exists $self->{nicklist}->{$channel} or not exists $self->{nicklist}->{$channel}->{$nick}) {
|
||||||
if (exists $self->{nicklist}->{$channel} and $nick =~ m/[*?]/) {
|
if (exists $self->{nicklist}->{$channel} and $nick =~ m/[*?]/) {
|
||||||
my $regex = quotemeta $nick;
|
my $regex = quotemeta $nick;
|
||||||
$regex =~ s/\\\*/.*/g;
|
$regex =~ s/\\\*/.*?/g;
|
||||||
$regex =~ s/\\\?/./g;
|
$regex =~ s/\\\?/./g;
|
||||||
|
|
||||||
my $found = 0;
|
my $found = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user