From: Ailin Nemui Date: Tue, 6 Jun 2017 17:12:52 +0000 (+0200) Subject: stop perl being confused by ][ in regex X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=76d920f8509ed6d5d88daba9d4151d61c60ae5ca;p=irssi-scripts.irssi.org.git stop perl being confused by ][ in regex --- diff --git a/scripts/colorize_nicks.pl b/scripts/colorize_nicks.pl index 4f8d26b..41c675f 100644 --- a/scripts/colorize_nicks.pl +++ b/scripts/colorize_nicks.pl @@ -1,7 +1,7 @@ use strict; use warnings; -our $VERSION = '0.3.6'; # e54c56e8922561d +our $VERSION = '0.3.7'; # 0887f6607e62b30 our %IRSSI = ( authors => 'Nei', contact => 'Nei @ anti@conference.jabber.teamidiot.de', @@ -50,7 +50,7 @@ use Irssi; my $irssi_mumbo = qr/\cD[`-i]|\cD[&-@\xff]./; -my $nickchar = qr/[][[:alnum:]\\|`^{}_-]/; +my $nickchar = qr/[\]\[[:alnum:]\\|`^{}_-]/; my $nick_pat = qr/($nickchar+)/; my @ignore_list;