]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Allow user names up to 20 characters
authorAlexander Barton <alex@barton.de>
Mon, 10 Dec 2012 09:41:36 +0000 (10:41 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 10 Dec 2012 09:41:36 +0000 (10:41 +0100)
This patch allows user names up to 20 characters when ngIRCd has not been
configured for "strict RFC mode".

Patch suggested by Brett Smith <brett@w3.org>, see
<http://arthur.barton.de/pipermail/ngircd-ml/2012-October/000579.html>.

src/ngircd/defines.h

index dcdd440c45b606f3c67d475f9fcc106d9c123532..ad9716fdefb6f2e807d7567911df146f4a43bfd4 100644 (file)
 #define CLIENT_PASS_LEN 21
 
 /** Max. length of user name ("login"; incl. NULL), RFC 2812, section 1.2.1. */
-#define CLIENT_USER_LEN 10
+#ifndef STRICT_RFC
+# define CLIENT_USER_LEN 20
+#else
+# define CLIENT_USER_LEN 10
+#endif
 
 /** Max. length of "real names" (including NULL). */
 #define CLIENT_NAME_LEN 32