The $chan at the ON 1:PART:#: does not work at all. You must space out the exclamation point, or type $chan $+ !.