Thanks to KindOne for finding the bug. CModeMessage::GetModes() must trim the colon that CMessage::GetParams() may include.