mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-02 15:34:05 +01:00
Interpreter: remove < and > as nick characters in dehighlight_nicks()
This commit is contained in:
parent
d6ca9474c3
commit
c88e5647e0
@ -879,8 +879,8 @@ sub dehighlight_nicks {
|
||||
my @tokens = split / /, $line;
|
||||
foreach my $token (@tokens) {
|
||||
my $potential_nick = $token;
|
||||
$potential_nick =~ s/^[^\w\[\]\<\>\-\\\^\{\}]+//;
|
||||
$potential_nick =~ s/[^\w\[\]\<\>\-\\\^\{\}]+$//;
|
||||
$potential_nick =~ s/^[^\w\[\]\-\\\^\{\}]+//;
|
||||
$potential_nick =~ s/[^\w\[\]\-\\\^\{\}]+$//;
|
||||
|
||||
next if length $potential_nick == 1;
|
||||
next if not $self->{pbot}->{nicklist}->is_present($channel, $potential_nick);
|
||||
|
Loading…
Reference in New Issue
Block a user