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.

eggdrop recognize wrong hostname

General support and discussion of Eggdrop bots.
Post Reply
G
Gust
Voice
Posts: 15
Joined: Wed Jun 28, 2006 12:53 pm

eggdrop recognize wrong hostname

Post by Gust »

Hey all,

I wrote an invite script, so members can ask invite voor a secret invite-only channel...

Everthing is working fine, excepts som users come to the channel first, and then log in on the IRC-server. Because of the login, there hostname changes...

But the bot recognize them with the hostname they joined the channel with..

How can i make that the bot recognize hostname changes, and so recognize the users with their new hostname?

thanks!
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

You should show us what you've written so we would know what changes you need to apply to your script for it to properly work.
G
Gust
Voice
Posts: 15
Joined: Wed Jun 28, 2006 12:53 pm

Post by Gust »

Sir_Fz wrote:You should show us what you've written so we would know what changes you need to apply to your script for it to properly work.
It is nothing in the script... The scripts works fine.

I have in my script the following line:

Code: Select all

append ident "*!*" [getchanhost $nick $chan]
When users join the channel (not logged into the IRC-server) they have a hostname like:

Code: Select all

*!*~POCT@D513F239F586ADF5.Omerta.cloak
However, when they log into the IRC-server, there hostname changes to:

Code: Select all

*!*~POCT@Gust.users.barafranca.com
but the outcome of the getchanhost-line of code will still be like the first hostname. So the bot doesn't recognize the change of hostnames...

How can i solve that?
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

have users login to ircd before joining channel
G
Gust
Voice
Posts: 15
Joined: Wed Jun 28, 2006 12:53 pm

Post by Gust »

DragnLord wrote:have users login to ircd before joining channel
Yeah, that is a solution that i could think myself.

But most users have there login and channel join thingy in the perform script of their mIRC, so not really a solution...

There should be a way that eggdrop recognize a hostname change... Because if he didn't, how can the eggdrop ban a user is nessescary?

So DragnLord, no offense, but that solution isn't a right one...

Another idea?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If there's a certain quit-message when the user registers, then you can implement a proc which will be triggered on quit and make the necessary changes over the user's hostname.
G
Gust
Voice
Posts: 15
Joined: Wed Jun 28, 2006 12:53 pm

Post by Gust »

Do you hare more information about that?

I don't think there is a quit message when users log in, because when they are on the channel and give the /hop-command, the eggdrop recognize the hostname change...
Last edited by Gust on Tue Jul 10, 2007 2:42 pm, edited 1 time in total.
G
Gust
Voice
Posts: 15
Joined: Wed Jun 28, 2006 12:53 pm

Post by Gust »

This problem still isn't solved... I have tried to live with it, but my bot is used more and more, so the problem is beginning to start really annoying!

Maybe somebody have an option to solve this problem?
Post Reply