Just what do you want the anti-idle script to do?
I've seen some that will allow you to idle if you have ops, but if not, then you are kicked.
I've seen others that will deop/devoice/dehalf-op if you are idle.
Is this for your idle time, or to keep idlers out of a channel?