This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Long nick ( handle ), HANDLEN, nickname topic

Old posts that have not been replied to for several years.
Locked
m
munkfish

Long nick ( handle ), HANDLEN, nickname topic

Post by munkfish »

Hi,

First up thanks for the good info supplied by ppslim in this thread: http://forum.egghelp.org/viewtopic.php?t=2317&highlight=handlen about allowing users to use handle's of length > 9 (the default handle length on eggdrop).

My query is as follows:
How can I adjust the configuration of my eggdrop (1.6.10) to allow users to use handlen's over 9 characters without recompiling the bot?

If the answer to this is 'you can't', then ok I'll rebuild but:

I've tried recompiling this bot once before (in another incarnation), but it went pear-shaped pretty badly. Do I have to make any additional targets such as 'make clean' before rebuilding? If someone could kindly post some steps required for rebuilding an already working bot is a safe manner I would be much obliged.

Many thanks in advance,
munk
D
Darth Vader

:)

Post by Darth Vader »

Really dunno man, its not so much work recompiling it anyway, u just change nicklen, then make 8)
Btw, u cant link to botnet with standart setting if ur bot suppports more then 9 chars nickname... or thats passed alreay? Maybe I got old info.. last time I tried to link to standart egg I couldnt.. I run second one with same settings- I could.. anyway, I would like to know too :)
m
munkfish

Post by munkfish »

This is it mate, I'll just backup everything first in a tarball before just in case.

yeah @ botnet thing, not in a net though as yet, but cheers for the pointer anyway.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As stated.

Eggdrop quite heavily uses the HANDLEN define at this moment. It uses it to format output and prevent buffer overflows.

You can't link with a bot with a HANDLEN that is not equal to your own, due to the way the botnet uses the HANDLEN define.

There is no choice but to re-compile. This is due to the fact, that this is compiled directly into the source code, and is not a setting.

What sort of problems did you have compiling. This is somthing we can hopfully help you with.

AND YUK: that damned picture in the sig.
m
munkfish

Post by munkfish »

<snip>
> There is no choice but to re-compile.
> This is due to the fact, that this is compiled directly
> into the source code, and is not a setting.
Okay, will do.

> What sort of problems did you have compiling.
Last time I *recompiled* I edited the eggdrop.h file to include the line

Code: Select all

#define HANDLEN 9
however when I rebuilt the bot I had the same problem in that users who I added to the bot were still having their handle's truncated to 9 characters. I have a feeling I missed something important out (I'm a Unix (wannabe) admin and my Unix is good, but my C isn't too hot!).

Not to worry, I'll try rebuilding the bot again and if I run into problems I'll shout.

As a subquery - once I've rebuilt the bot with support for HANDLEN == 32, will I be able to modify my <eggdrop>.user file and manually change the truncated handles (before booting the eggdrop up obviously)?


> AND YUK: that damned picture in the sig.
?
Is it ok to add an avatar external link or do ppl get pigged off about it (90x70 rather handsome BSD console pimp devil dewd I just knocked together last night hehe)

<edit> - yeah see what you mean about darth's sig ;(
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There should be no need to include it.

The line is allready there, it just needs to be changed.

Yes, you should simply be able to edit the userfile, before you start the bot.

A wannabe *nix admin heh. Same here. Just never got around the getting the *nix box though (well, not in the past 5 years anyway).
m
munkfish

Post by munkfish »

> There should be no need to include it.
> The line is allready there, it just needs to be changed.
My bad all over the place mate. I just started to rebuild bot and in editing eggdrop.h I found this cock up:

Code: Select all

#define HANDLEN»»··· 9»/* valid values 9->NICKMAX»·»···*/
#define NICKMAX»»··· 32»/* valid values HANDLEN->32»»···*/
ie I'd mod'd the wrong line *DOH* - no wonder it didn't work! :)

> Yes, you should simply be able to edit the userfile,
> before you start the bot.
Cool

> A wannabe *nix admin heh. Same here.
> Just never got around the getting the *nix box though
> (well, not in the past 5 years anyway).
Shoot us a ton and I'll mail you a p200 with freebsd on it :) lol

I've just seen a Compaq Proliant 6500, as it goes, for sale for around a grand,. Not sure if it's a good deal or not but thinking it'd be neat to get it colocated. Trouble is you know how hard it is to make profit on hosting nowadays ;( We shall see...
D
Darth Vader

:)

Post by Darth Vader »

0k, I removed the pic.. and btw, Im happy was right about the botnet thingie :D
Locked