| View previous topic :: View next topic |
| Author |
Message |
roughnecks Voice
Joined: 14 Sep 2008 Posts: 33 Location: Italy
|
Posted: Sat Sep 26, 2009 11:06 am Post subject: nicklen problem |
|
|
| 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  |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Sep 26, 2009 1:24 pm Post subject: |
|
|
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 |
|
 |
roughnecks Voice
Joined: 14 Sep 2008 Posts: 33 Location: Italy
|
Posted: Sat Sep 26, 2009 3:58 pm Post subject: |
|
|
| 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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Sep 26, 2009 4:52 pm Post subject: |
|
|
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 |
|
 |
roughnecks Voice
Joined: 14 Sep 2008 Posts: 33 Location: Italy
|
Posted: Sat Sep 26, 2009 6:01 pm Post subject: |
|
|
| 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 |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Sep 26, 2009 7:38 pm Post subject: |
|
|
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 |
|
 |
roughnecks Voice
Joined: 14 Sep 2008 Posts: 33 Location: Italy
|
Posted: Sun Sep 27, 2009 7:05 am Post subject: |
|
|
| 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 |
|
 |
|