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.

bed registeration mask...

Old posts that have not been replied to for several years.
Locked
f
fox17
Voice
Posts: 13
Joined: Sun Dec 01, 2002 4:47 pm
Location: Russia/Moscow

bed registeration mask...

Post by fox17 »

When user write HELLO to bot that bot put they account with mask *!name@*.vescom.ru! Can I'm set config or other that bot register new account whith *!*@adres.vescom.ru mask?

Sorry, I'm from Russia and my English is very bed =)
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

No - eggdrop currently only uses one mask style.

You can however, create your own function for adding users when the say ehllo, and create your own mask.
f
fox17
Voice
Posts: 13
Joined: Sun Dec 01, 2002 4:47 pm
Location: Russia/Moscow

Post by fox17 »

1) How to create this funktion?
2) One man say that he's edit code in bot for it! Can you say haw and what edit? Or can you recive me edit code to shubin@vescom.ru

Tns
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

We don't usualy send details to e-mail addresses, as we prefer to keep it comunity knowledge.

The function for creating hostmasks is available in src/misc.c. THe function name is maskhost.

I have yet to see any message sayign that this function has been edited by eny1 in some way.

If a user has lead you to believe this, then you should speak to them.
f
fox17
Voice
Posts: 13
Joined: Sun Dec 01, 2002 4:47 pm
Location: Russia/Moscow

Post by fox17 »

hmmm...
What line modify @a.b.c to @*.b.c ?
And what edit to block this modify?

Thanks
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

As I stated, I don't know, and I am not aware of any web-page or e-mail thats states what to change.

It's a lot harder than simply change a.b.c to *.b.c
f
fox17
Voice
Posts: 13
Joined: Sun Dec 01, 2002 4:47 pm
Location: Russia/Moscow

Post by fox17 »

I do it!!!! Yeaaaa =)
Modify one line in src/misc.c (block code):
if ((!(p = strchr(q, '.')) || !(e = strchr(p + 1, '.'))) && !strchr(q, ':'))
to
if ((!(p = strchr(q, '~.~')) || !(e = strchr(p + 1, '~.~'))) && !strchr(q, ':'))

that's all
Locked