| View previous topic :: View next topic |
| Author |
Message |
LaMpiR Voice
Joined: 21 Nov 2004 Posts: 21
|
Posted: Sat Jun 11, 2005 7:28 am Post subject: nick lenght problem |
|
|
Before compiling i've edited eggdrop.h in /src/ and i am using gseen mod but it doesn't work with nick longer than 9 characters  |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sat Jun 11, 2005 9:33 am Post subject: |
|
|
| Code: | # open src/mod/gseen.mod/gseen.c
# find (line 88)
static int seen_nick_len = 9;
# replace with
static int seen_nick_len = 32; |
just recompile and copy either gseen.so/dll or eggdrop(.exe) to your install (mod) path. _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sun Jun 12, 2005 2:52 pm Post subject: |
|
|
I don't have the gseen source before me, but as far as I can remember, it uses eggdrop's global variable nick_len, which is initialized from the config/scripts by setting nick-len
so gseen should be working with whatever nick length nick-len is set to (and fall back to default 9 only if nick-len is not set) |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Mon Jun 13, 2005 3:36 am Post subject: |
|
|
nope, my bots are always compiled with 30 nicklength. the funny thing is, it will save the nicks correctly, but you cannot search for them. ex.
you are searching for "IhaveAcoolLONGnick" and use this without the patch:
!seen IhaveAcoolLONGnick
the bot will say it would be a too long nick, but if you use
!seen IhaveAc*
he will answer, that there is exactly one match, IhaveAcoolLONGnick ^-^. seems the intern nicklength is only used for the direct query input, however since it helps, it wont hurt to change that var, will it?  _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Jun 13, 2005 11:39 pm Post subject: |
|
|
compiled with nicklen? which eggdrop version do you use? nicklen has been configurable in eggdrop.conf since eggdrop1.4
I just got the latest gseen and it also has seen nicklen configurable:
| Code: |
static tcl_ints my_tcl_ints[] =
{
{"save-seens", &save_seens, 0},
{"expire-seens", &expire_seens, 0},
{"use-handles", &use_handles, 0},
{"tell-seens", &tell_seens, 0},
{"botnet-seens", &botnet_seen, 0},
{"max-matches", &max_matches, 0},
{"fuzzy-search", &fuzzy_search, 0},
{"wildcard-search", &wildcard_search, 0},
{"hide-secret-chans", &hide_secret_chans, 0},
{"seen-nick-len", &seen_nick_len, 0},
{0, 0, 0}
};
|
|
|
| Back to top |
|
 |
Galadhrim Op
Joined: 11 Apr 2003 Posts: 123 Location: Netherlands, Enschede
|
Posted: Tue Jun 14, 2005 4:38 am Post subject: |
|
|
| I remember that I had to edit eggdrop.h to make sure that the nicklength got larger for my local dmz irc server, can't remember a setting in the config file tbh. Might just be me... |
|
| Back to top |
|
 |
^DooM^ Owner

Joined: 26 Aug 2003 Posts: 772 Location: IronForge
|
Posted: Tue Jun 14, 2005 9:47 am Post subject: |
|
|
| Galadhrim wrote: | | I remember that I had to edit eggdrop.h to make sure that the nicklength got larger for my local dmz irc server, can't remember a setting in the config file tbh. Might just be me... | Not just you I had to do the same. The config nick length if I remember correctly is for the internal userlist nick lengths and the source nick length is to allow the bots nick to be upto 32 chars long. could be the other way round my memory is failing in my old age  _________________ The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Jun 14, 2005 12:19 pm Post subject: |
|
|
| Galadhrim wrote: | | I remember that I had to edit eggdrop.h to make sure that the nicklength got larger for my local dmz irc server, can't remember a setting in the config file tbh. Might just be me... |
it's you
from eggdrop.h:
| Code: |
* NICKMAX note:
* You should leave this at 32 characters and modify nick-len in the
* configuration file instead.
*/
#define HANDLEN 9 /* valid values 9->NICKMAX */
#define NICKMAX 32 /* valid values HANDLEN->32 */
|
from eggdrop.conf:
| Code: |
# This setting allows you to specify the maximum nick-length supported by your
# network. The default setting is 9. The maximum supported length by Eggdrop
# is 32.
set nick-len 9
|
it's hard to imagine someone would need nicks with more than 32 chars |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Jun 14, 2005 12:23 pm Post subject: |
|
|
| ^DooM^ wrote: | | Galadhrim wrote: | | I remember that I had to edit eggdrop.h to make sure that the nicklength got larger for my local dmz irc server, can't remember a setting in the config file tbh. Might just be me... | Not just you I had to do the same. The config nick length if I remember correctly is for the internal userlist nick lengths and the source nick length is to allow the bots nick to be upto 32 chars long. could be the other way round my memory is failing in my old age  |
you must be hundred years old, those things were documented in eggdrop.conf in recent years  |
|
| Back to top |
|
 |
^DooM^ Owner

Joined: 26 Aug 2003 Posts: 772 Location: IronForge
|
Posted: Tue Jun 14, 2005 2:22 pm Post subject: |
|
|
lol it feels like it at times =D it was a good few years ago since I did that. Most likley updated it since then.  _________________ The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born |
|
| Back to top |
|
 |
shorte Voice
Joined: 11 Jan 2006 Posts: 6 Location: Minneapolis MN
|
Posted: Thu Jan 12, 2006 7:30 pm Post subject: Wonder if this will help |
|
|
I have a user who for some reason isn't able to ident when his host changes, now everyone else in the user file is able to and I belive it might have something to do with the fact that he has a _ in the nick, now if I changed the settings per the other replies in this post, will this fix my issue or is there some other goblin out there that is holding it up, nick len is set to 15 (which is the current max for undernet) and that hasn't changed anything.
Any ideas would be helpful, otherwise if this works, don't bite my head off
Thanks...
Peace  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Jan 12, 2006 7:51 pm Post subject: |
|
|
You need to also increase the HANDLEN, change it to 15 and recompile. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Thu Jan 12, 2006 8:06 pm Post subject: |
|
|
what has ident to do with nicklength of gseen? Changing gseen.c will therefore not help!
well, _ is 100% no reason for that issue. my handle contains a _ since I got my very first eggdrop and I had never any issues with it. _________________ De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens... |
|
| Back to top |
|
 |
shorte Voice
Joined: 11 Jan 2006 Posts: 6 Location: Minneapolis MN
|
Posted: Fri Jan 13, 2006 1:07 am Post subject: |
|
|
| Sir_Fz wrote: | | You need to also increase the HANDLEN, change it to 15 and recompile. |
Thanks man you rock... now I just have to convince the other bot admins to do the same so I can get my full botnet back, but that's not your issue.
THanks again man.
Peace |
|
| Back to top |
|
 |
|