In this case using $nick and $chan would be fine because they're evaluated at the time the /timer command is issued and not when the timer is fired. There would only be a problem if you used $!nick and $!chan.