m_clearchan: cleaned up code