egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

nicklen problem

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
roughnecks
Voice


Joined: 14 Sep 2008
Posts: 33
Location: Italy

PostPosted: Sat Sep 26, 2009 11:06 am    Post subject: nicklen problem Reply with quote

Code:
.set handlen
Currently: 9

.set handlen 15
Error: can't set "handlen": read-only variable


Hi, the eggdrop.conf is set to Network Type 5
nick-len is set to 15

and before compiling eggdrop1.6.19+ctcpfix i changed the handlen to 15 in src/eggdrop.h

Code:
#define HANDLEN 15   /* valid values 9->NICKMAX  */
#define NICKMAX 32  /* valid values HANDLEN->32 */


What's the problem ?
Thanks Sad
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Sep 26, 2009 1:24 pm    Post subject: Reply with quote

handlen is, and should be write-protected, as it is merely provided as a way for scripters to read the value of the HANDLEN macro definition.

Since the HANDLEN macro is an integral part of the userfile, altering it will render any old userfiles incompatible, and will prevent linking with eggdrop's using a different HANDLEN macro value.

Since the value of handlen is 9, you most likely either failed to edit src/eggdrop.h prior compiling, or make did not notice src/eggdrop.h had been altered, or did not build the dependancy-tree properly.

Regardless, having NICKMAX defined to 32 and setting nick-len 15 should allow your eggdrop to work well on irc networks permitting 15 character long nicknames. Remember, handles does not have to be identical to one users's irc nickname (although that might be preferrable from an admin's point of view in some occasions).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
roughnecks
Voice


Joined: 14 Sep 2008
Posts: 33
Location: Italy

PostPosted: Sat Sep 26, 2009 3:58 pm    Post subject: Reply with quote

nml375 wrote:

Since the value of handlen is 9, you most likely either failed to edit src/eggdrop.h prior compiling, or make did not notice src/eggdrop.h had been altered, or did not build the dependancy-tree properly.


How can i check these things ?
I edited eggdrop.h with nano and the code i pasted in the first post is taken directly from the file.

What is it the dependancy-tree ?
Thanks.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Sep 26, 2009 4:52 pm    Post subject: Reply with quote

Well, if you've doublechecked the contents of src/eggdrop.h after recompiling your eggdrop, that would rule out the first possibility.

The dependancy-tree I'm talking of are the make-rules (in your makefile), which dictates how make/gmake should test whether a file is current (more recent timestamp than it's sources) or has to be re-built.

Try "make clean" or "make distclean", then ./configure and the rest... and don't forget the make install (would probably be a good idea to remove all the old eggdrop binaries, just to make sure).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
roughnecks
Voice


Joined: 14 Sep 2008
Posts: 33
Location: Italy

PostPosted: Sat Sep 26, 2009 6:01 pm    Post subject: Reply with quote

nml375 wrote:

Try "make clean" or "make distclean", then ./configure and the rest... and don't forget the make install (would probably be a good idea to remove all the old eggdrop binaries, just to make sure).


I even installed in a new path, after compiling in a new directory.
No-way.

Thank you again for helping me.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Sep 26, 2009 7:38 pm    Post subject: Reply with quote

Then I am out of ideas..

My best suggestion is to live with shorter handle names, and set nick-len to match your irc network.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
roughnecks
Voice


Joined: 14 Sep 2008
Posts: 33
Location: Italy

PostPosted: Sun Sep 27, 2009 7:05 am    Post subject: Reply with quote

nml375 wrote:
My best suggestion is to live with shorter handle names, and set nick-len to match your irc network.


indeed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber