Fixed message logging on quit to only include channels on which the user was active.