summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mass_hilight_blocker.pl7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/mass_hilight_blocker.pl b/scripts/mass_hilight_blocker.pl
index a5611a3..99e22fd 100644
--- a/scripts/mass_hilight_blocker.pl
+++ b/scripts/mass_hilight_blocker.pl
@@ -18,14 +18,14 @@
use strict;
use Irssi;
use vars qw($VERSION %IRSSI);
-$VERSION = "0.2";
+$VERSION = "0.3";
%IRSSI = (
authors => "Uli Baumann",
contact => "f-zappa\@irc-muenster.de",
name => "mass_hilight_blocker",
description => "Disables hilighting for messages containing a lot of nicknames",
license => "GPL",
- changed => "Tue Jun 1 13:32:20 CEST 2004",
+ changed => "Wed Apr 27 02:30:00 CEST 2016",
);
@@ -43,8 +43,7 @@ sub sig_printtext {
foreach my $nick ($channel->nicks()) # walk through nicks
{
$nick = $nick->{nick};
- $nick =~ s/([\]\[])/\\$1/g; # ']' and '[' need masking
- if ($text =~ /$nick/) # does line contain this nick?
+ if ($text =~ /\Q$nick/) # does line contain this nick?
{$num_nicks++;} # then increase counter
}