Obviously that will only work if you (or a bot that has the script) are in the room. If your network has ChanServ, you could add nicks to the auto-voice list with the command
/chanserv vop #channel add <nick> so they get voiced regardless of whether you're there. Read the MOTD to see what channel services are available.
PS - this will only work if the channel is registered to you, or you have SOp status.