diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 81830227..62f7c14c 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -920,9 +920,8 @@ sub handle_result { sub dehighlight_nicks { my ($self, $line, $channel) = @_; $channel = lc $channel; - return if not exists $self->{pbot}->{nicklist}->{nicklist}->{$channel}; + return $line if not exists $self->{pbot}->{nicklist}->{nicklist}->{$channel}; my $nicklist = $self->{pbot}->{nicklist}->{nicklist}; - my $zwsp = "\x{200b}"; foreach my $nick (keys %{$nicklist->{$channel}}) { my $n = quotemeta $nicklist->{$channel}->{$nick}->{nick};