Nice, but you want to watch out for exploit.

The code you pasted can be exploited, /timer is by design double evaluating the command parameter, here you are using $active, which is an unknown value and refers to a channel
Channel's names can unfortunately contain $identifier, which can be evaluated, which would be the exploit, you can find informations about this here


#mircscripting @ irc.swiftirc.net == the best mIRC help channel