[vhffs-dev] [1586] Allowing spaces in irc nicknames doesn't sounds like a good idea.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1586
Author:   guillaumito
Date:     2010-04-03 00:10:53 +0200 (Sat, 03 Apr 2010)
Log Message:
-----------
Allowing spaces in irc nicknames doesn't sounds like a good idea.
Thanks xavier ;)

Modified Paths:
--------------
    trunk/vhffs-panel/user/prefs.pl

Modified: trunk/vhffs-panel/user/prefs.pl
===================================================================
--- trunk/vhffs-panel/user/prefs.pl	2010-04-02 21:55:29 UTC (rev 1585)
+++ trunk/vhffs-panel/user/prefs.pl	2010-04-02 22:10:53 UTC (rev 1586)
@@ -501,7 +501,7 @@
         return;
     }
 
-    if( $ircnick !~ /^[^<">]*$/ ) {
+    if( $ircnick !~ /^[^<">\s]*$/ ) {
         $panel->add_error( gettext( 'IRC nick is not correct !') );
         return;
     }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/