Does anyone has a script which checks on a join if the nick is in the access list, or if he gets a +o/+h/+v/+q/+a in the chan, and if not, the script user (me or a bot) will voice the joining nick?

(My english isn't that well, I'm sorry)