dynip and programs like these doesn't works well,because the bot joins ircNET using only dynamic ip numbers,cuz our reverse dns works in one only way.
your idea is good,but it requires a good tcl knowledge that i haven't. the tcl i've posted seems to do something like this,but it doesn't works.