Skip to content
Snippets Groups Projects
Commit e59075e7 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes an issue where Hex colors weren’t properly serialzed

- previously, the full ARGB was serialized, even though only RGB is
  supported
parent cb67d8d2
Branches
Tags
No related merge requests found
......@@ -100,7 +100,7 @@ class IrcFormatSerializer internal constructor(private val context: Context) {
fun writeHexColor(foreground: Int?) {
out.append(CODE_HEXCOLOR)
if (foreground != null) {
out.append(String.format(Locale.US, "%06x", foreground))
out.append(String.format(Locale.US, "%06x", foreground and 0x00FFFFFF))
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment