multilineedit: handle unterminated mIRC codes