on QUIT has no :#: associated with it, just like on NICK.
I'm not sure if it still works or not (haven't tested it in ages), but you used to be able to do:
on *:*:#:{ }
and then parse the $event yourself. Ditto for on TEXT/NOTICE/ACTION events with:
on *:*:*:#:{ }