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 

bot not keeping up with changing hostnames of users

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


Joined: 21 Feb 2006
Posts: 2

PostPosted: Tue Feb 21, 2006 3:28 am    Post subject: bot not keeping up with changing hostnames of users Reply with quote

I have an eggdrop with some selfmade tcl scripts, and he basicly has 2 tasks.

1) change the hostnames of users on the server, according to their level/username on my website. The bot is an irc oper, he checks the data with generated txt files from my site and uses 'CHGHOST' to change hosts of users when he finds a required similarity.

2) output txt files with logs of who was active at certain times, together with the hostnames of those users. Those txt files are used for stats pages, with the artificial hosts used to connect the right irc user to the right website account. Those hosts are collected with the tcl command [getchanhost $nick $room] .


Now, what I have noticed ... is that the bot sometimes is very slow with remembering those new hosts he has set himself. It might take several hours before he is using the right new hosts in logs instead of the original host the user had when connecting to the irc server. I guess the bot is somewhere keeping an internal host list as a cache to save him some work. And this list is mostly not renewed when the bot himself is doing chghost commands. I guess there is some kind of way of forcing the bot to rework his host list, but I have not yet found this. So any changes in hostnames with chghost are slow and random in my logs.

My question is ofcourse : how can I solve this ? Is there a tcl command to force the bot to recheck all userhosts ? is there a timer setting that can be used to let this list expire ? I guess I'm not using all the right terms, but I hope I'm making myself clear.

Thanks
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Tue Feb 21, 2006 4:10 am    Post subject: Reply with quote

how does your irc server notify other clients on channel that client's host has been changed? this is normally done via simulated part/join with the new host (Undernet); and if that's also your case, you shouldn't have problems like these, eggdrop is keeping its internal client list in sync on every join; if not, try to use [resetchan] in your scripts
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
odoisc
Voice


Joined: 21 Feb 2006
Posts: 2

PostPosted: Tue Feb 21, 2006 6:15 am    Post subject: Reply with quote

calling resetchan every few minutes makes it all work perfect now, thanks Smile
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