An on quit event should be there as well:
on me:*:join:*:msg $chan Hi all on me:*:part:*:msg $chan Bye all I am out. on me:*:quit:.raw QUIT $+(:,$iif($1,$1-,Bye bye $+ $chr(44) I'm outty.))