summaryrefslogtreecommitdiffstats
path: root/scripts/nickserv.pl
diff options
context:
space:
mode:
authorMatt Sparks2014-07-01 00:43:23 -0700
committerMatt Sparks2014-07-01 12:45:46 -0700
commit65e221814314e69a41f4ef6df98c6e772ef60872 (patch)
treef2d69c587b4a623fa9639e577d110435b44104db /scripts/nickserv.pl
parent223d960b2d4267d3a8d578e9a2ee21e0cb58a87b (diff)
downloadscripts.irssi.org-65e221814314e69a41f4ef6df98c6e772ef60872.tar.bz2
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.
Diffstat (limited to 'scripts/nickserv.pl')
-rw-r--r--scripts/nickserv.pl6
1 files changed, 3 insertions, 3 deletions
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 {