From: Matt Sparks Date: Tue, 1 Jul 2014 07:43:23 +0000 (-0700) Subject: nickserv.pl: allow unbounded-length usernames. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=65e221814314e69a41f4ef6df98c6e772ef60872;p=irssi-scripts.irssi.org.git nickserv.pl: allow unbounded-length usernames. Some ircds, namely unrealircd, allow the username to be 10 characters. RFC 2812 does not seem to specify the maximum length of usernames. --- diff --git a/scripts/nickserv.pl b/scripts/nickserv.pl index 54250b9..464ba01 100644 --- a/scripts/nickserv.pl +++ b/scripts/nickserv.pl @@ -24,7 +24,7 @@ use strict; use Irssi; use vars qw($VERSION %IRSSI); -$VERSION = "1.8"; +$VERSION = "1.9"; %IRSSI = ( authors => 'Geert Hauwaerts', @@ -33,7 +33,7 @@ $VERSION = "1.8"; description => 'This script will authorize you into NickServ.', license => 'GNU General Public License', url => 'http://irssi.hauwaerts.be/nickserv.pl', - changed => 'Fri Jun 6 12:03:04 CEST 2008', + changed => 'Tue Jul 1 12:41:23 PDT 2014', ); my @nickservnet = (); @@ -290,7 +290,7 @@ sub add_network { } if ($hostname) { - if ($hostname !~ /^[.+a-zA-Z0-9_-]{1,9}@[.+a-zA-Z0-9_-]{1,}$/) { + if ($hostname !~ /^[.+a-zA-Z0-9_-]{1,}@[.+a-zA-Z0-9_-]{1,}$/) { Irssi::printformat(MSGLEVEL_CLIENTCRAP, 'nickserv_wrong_host', $hostname); return; } else {