protocol: log bad format color codes, fixes #353

This commit is contained in:
ice_iix 2020-07-03 16:31:33 -07:00
parent 64fc29796d
commit eb703f0776
1 changed files with 4 additions and 1 deletions

View File

@ -357,7 +357,10 @@ pub fn convert_legacy(c: &mut Component) {
'n' => modifier.underlined = Some(true),
'o' => modifier.italic = Some(true),
'r' => {}
_ => unimplemented!(),
_ => println!(
"warning: unsupported color code {:?} in text '{}'",
color_char, txt
),
}
current.modifier = modifier;