core: Track modes on channels.