mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Interpreter: minor clean-up
This commit is contained in:
parent
d5ec26c8b3
commit
1a2d463f5b
@ -920,8 +920,8 @@ sub handle_result {
|
||||
sub dehighlight_nicks {
|
||||
my ($self, $line, $channel) = @_;
|
||||
$channel = lc $channel;
|
||||
return $line if not exists $self->{pbot}->{nicklist}->{nicklist}->{$channel};
|
||||
my $nicklist = $self->{pbot}->{nicklist}->{nicklist};
|
||||
return $line if not exists $nicklist->{$channel};
|
||||
my $zwsp = "\x{200b}";
|
||||
foreach my $nick (keys %{$nicklist->{$channel}}) {
|
||||
my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick};
|
||||
|
Loading…
Reference in New Issue
Block a user