mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Fix IRC bold/italic/underline formatting chars not being stripped.
This commit is contained in:
parent
bcb1fab1d3
commit
6b53f96f9b
@ -142,8 +142,13 @@ namespace MCGalaxy {
|
||||
sb.Replace(ircSingle[i], ircReplacements[i]);
|
||||
}
|
||||
|
||||
sb.Replace("\u0003", white); // color reset
|
||||
sb.Replace("\u000f", white); // reset
|
||||
// trim misc formatting chars
|
||||
sb.Replace("\x02", ""); // bold
|
||||
sb.Replace("\x1D", ""); // italic
|
||||
sb.Replace("\x1F", ""); // underline
|
||||
|
||||
sb.Replace("\x03", white); // color reset
|
||||
sb.Replace("\x0f", white); // reset
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user