Am 29. Jul 2004 um 0:24 Uhr schrieb Jack Beckman:
On Jul 28, 2004, at 4:20 PM, Lucian wrote:
Hello, I have a few users very unhappy with the maximum nickname length value so i tried to change it (failing miserably); i modified some .h file in the source code where i thought the nickname length was defined but the server still won't accept nicknames longer than 9 characters - I'm no coder. What can I do now? Please help! Thanks!
This is the line of code to change:
#define CLIENT_NICK_LEN 30 /* max. Nick-Laenge; vgl. RFC 2812, 1.2.1 */
It's line 41 in defines.h (at least in my 0.8.0 version here).
Right, defines.h is in src/ngircd/. The file and CLIENT_NICK_LEN exist since the verry first release of ngIRCd, 0.0.1, dated 2001-12-31 :-))
CLIENT_NICK_LEN specifies the maximum length of nick names including a trailing NULL character. The default is 10 bytes, resulting in 9 usable characters for the end-user plus one byte for the NULL byte.
And please note: - changing CLIENT_NICK_LEN isn't tested by me at all! Feedback welcome. - all servers in a network MUST use the same nick-name length!
Regards Alex