You're passing unknown content ($chan) to /timer in that on join event, it's going to be double evaluated, you need a $safe around this $chan value


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