While there's no direct channel referenced in the ON QUIT event, using $comchan($nick,X) will return the Xth common channel of the nick that has quit. I thought you were aware of this.