diff options
| author | Alexander Barton <alex@barton.de> | 2012-12-10 10:41:36 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2012-12-10 10:41:36 +0100 |
| commit | 1342f78b0901b33c4b8a63b7676b6c5e98f19760 (patch) | |
| tree | 930bb6d4978c682c5d961c57b8d554cbf4dec15c /src | |
| parent | a0d57a6afd6d9e97388e8336762a3359fa4d80b5 (diff) | |
| download | ngircd-1342f78b0901b33c4b8a63b7676b6c5e98f19760.tar.gz ngircd-1342f78b0901b33c4b8a63b7676b6c5e98f19760.zip | |
Allow user names up to 20 characters
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>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/defines.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h index dcdd440c..ad9716fd 100644 --- a/src/ngircd/defines.h +++ b/src/ngircd/defines.h @@ -99,7 +99,11 @@ #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 |