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.

bot not keeping up with changing hostnames of users

General support and discussion of Eggdrop bots.
Post Reply
o
odoisc
Voice
Posts: 2
Joined: Tue Feb 21, 2006 3:07 am

bot not keeping up with changing hostnames of users

Post by odoisc »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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: Select all

 tag when posting logs, code
o
odoisc
Voice
Posts: 2
Joined: Tue Feb 21, 2006 3:07 am

Post by odoisc »

calling resetchan every few minutes makes it all work perfect now, thanks :)
Post Reply