]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
nickserv.pl: allow unbounded-length usernames.
authorMatt Sparks <redacted>
Tue, 1 Jul 2014 07:43:23 +0000 (00:43 -0700)
committerMatt Sparks <redacted>
Tue, 1 Jul 2014 19:45:46 +0000 (12:45 -0700)
Some ircds, namely unrealircd, allow the username to be 10
characters. RFC 2812 does not seem to specify the maximum length of
usernames.

scripts/nickserv.pl

index 54250b9e720e382640af0fb06f708d1710bdabdd..464ba01f967822359f6515115c41ca6826387d45 100644 (file)
@@ -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 {
git clone https://git.99rst.org/PROJECT