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!
Am 29. Jul 2004 um 0:24 Uhr schrieb Jack Beckman:
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
Jack Beckman jbeckman@beckmanjm.com wrote:
Same here. The long names work fine on a single server. BTW: Changing the code so that no rooms except the predefined can be opened works fine, too ;-)
Yours Jens
Jens Kleine wrote:
Same here. The long names work fine on a single server.
Good to hear :-)
The nick name length should become a configuration option, I think. A lot of people want to change it ...
A run-time option in ngircd.conf would be a bit trickier, but what about a ./configure option à la "--with-nick-length=30"?
BTW: Changing the code so that no rooms except the predefined can be opened works fine, too ;-)
Ah, interesting. Do you have a patch for this? Could be useful for more people and eventually become a ./configure option, too ...
Regards Alex
Alexander Barton alex@barton.de wrote:
Ah, interesting. Do you have a patch for this? Could be useful for more people and eventually become a ./configure option, too ...
I just changed (keep changing with new versions) the channel.c from line 162 to: { /* Gibt es noch nicht? Dann neu anlegen: */ /* chan = Channel_Create( Name ); if( ! chan ) return FALSE; */ return FALSE; } It's returning FALSE everytime somebody tries to create a new channel so nobody can use the server I keep running for a fanclub for there personal purposes and just the 2 predifined channels the fanclub needs exist.
Yours Jens
On Jul 29, 2004, at 2:10 PM, Jens Kleine wrote:
Maybe if it could be restricted so only server operators could create a channel? I think being able to turn this on/off globally would be a good ./configure option - I too run a private server for a club.
---- Jack Quis custodiet ipsos custodes?
---- Jack Quis custodiet ipsos custodes?
On Thu, Jul 29, 2004 at 02:45:35PM -0400, Jack Beckman wrote:
This should be no problem (and another reason for intoducing a "half op" status ...).
I think being able to turn this on/off globally would be a good ./configure option - I too run a private server for a club.
Hm, thinking about it ... a run-time option in ngircd.conf would probably make more sense (and would be more flexible).
Regards Alex
On Thu, Jul 29, 2004 at 08:10:52PM +0200, Jens Kleine wrote:
I see. But this only works with a stand-alone server and will break networked environments when an other servers announces that a user has joined a channel.
Okay, probably no problem for your case :-)
The solution would be to make IRC_JOIN (irc-channel.c) more clever and only call Channel_Join() when a) the JOIN was received from a server or b) the channel already exists.
Regards Alex
thanks guys, it worked! I'm running a standalone server for a small community so I'm not worried about problems that may appear regarding server linking and stuff. Keep up the good job!
On Wed, 28 Jul 2004 23:20:22 +0300, Lucian selfaware@gmail.com wrote: