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 

nick lenght problem

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
LaMpiR
Voice


Joined: 21 Nov 2004
Posts: 21

PostPosted: Sat Jun 11, 2005 7:28 am    Post subject: nick lenght problem Reply with quote

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 Smile
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sat Jun 11, 2005 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Sun Jun 12, 2005 2:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Mon Jun 13, 2005 3:36 am    Post subject: Reply with quote

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? Smile
_________________
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
View user's profile Send private message MSN Messenger
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Jun 13, 2005 11:39 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Galadhrim
Op


Joined: 11 Apr 2003
Posts: 123
Location: Netherlands, Enschede

PostPosted: Tue Jun 14, 2005 4:38 am    Post subject: Reply with quote

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
View user's profile Send private message
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Tue Jun 14, 2005 9:47 am    Post subject: Reply with quote

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 Wink
_________________
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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Jun 14, 2005 12:19 pm    Post subject: Reply with quote

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 Wink

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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Jun 14, 2005 12:23 pm    Post subject: Reply with quote

^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 Wink


you must be hundred years old, those things were documented in eggdrop.conf in recent years Razz
Back to top
View user's profile Send private message Visit poster's website
^DooM^
Owner


Joined: 26 Aug 2003
Posts: 772
Location: IronForge

PostPosted: Tue Jun 14, 2005 2:22 pm    Post subject: Reply with quote

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. Wink
_________________
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
View user's profile Send private message Visit poster's website
shorte
Voice


Joined: 11 Jan 2006
Posts: 6
Location: Minneapolis MN

PostPosted: Thu Jan 12, 2006 7:30 pm    Post subject: Wonder if this will help Reply with quote

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 Smile

Thanks...

Peace Confused
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jan 12, 2006 7:51 pm    Post subject: Reply with quote

You need to also increase the HANDLEN, change it to 15 and recompile.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Jan 12, 2006 8:06 pm    Post subject: Reply with quote

what has ident to do with nicklength of gseen? Changing gseen.c will therefore not help! Razz
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
View user's profile Send private message MSN Messenger
shorte
Voice


Joined: 11 Jan 2006
Posts: 6
Location: Minneapolis MN

PostPosted: Fri Jan 13, 2006 1:07 am    Post subject: Reply with quote

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. Smile

THanks again man.

Peace
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 -> Modules & Programming 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