Skip to content

Commit

Permalink
protocol: log bad format color codes, fixes #353
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiix committed Jul 3, 2020
1 parent 64fc297 commit eb703f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion protocol/src/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eb703f0

Please sign in to comment.