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 

eggdrop recognize wrong hostname

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Gust
Voice


Joined: 28 Jun 2006
Posts: 15

PostPosted: Sun Jul 23, 2006 7:10 am    Post subject: eggdrop recognize wrong hostname Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Jul 23, 2006 6:23 pm    Post subject: Reply with quote

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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Gust
Voice


Joined: 28 Jun 2006
Posts: 15

PostPosted: Mon Jul 24, 2006 2:04 am    Post subject: Reply with quote

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:
append ident "*!*" [getchanhost $nick $chan]


When users join the channel (not logged into the IRC-server) they have a hostname like:
Code:
*!*~POCT@D513F239F586ADF5.Omerta.cloak


However, when they log into the IRC-server, there hostname changes to:
Code:
*!*~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?
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Mon Jul 24, 2006 3:23 am    Post subject: Reply with quote

have users login to ircd before joining channel
Back to top
View user's profile Send private message
Gust
Voice


Joined: 28 Jun 2006
Posts: 15

PostPosted: Mon Jul 24, 2006 10:53 am    Post subject: Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jul 24, 2006 3:21 pm    Post subject: Reply with quote

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.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Gust
Voice


Joined: 28 Jun 2006
Posts: 15

PostPosted: Tue Jul 25, 2006 3:45 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Gust
Voice


Joined: 28 Jun 2006
Posts: 15

PostPosted: Tue Jul 10, 2007 2:29 pm    Post subject: Reply with quote

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?
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 -> Eggdrop Help 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