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