Fix smol formatting issue

This commit is contained in:
JeremyStar™ 2024-12-21 13:40:01 +01:00
parent c640176dd7
commit bbfb7802f1
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -92,7 +92,7 @@ open class SOSLSv2FormatBuilder(call: Call, channelSettings: ChannelSettings?) :
var messageFormat: String = this@SOSLSv2FormatBuilder.message
if (ChannelSettings.getSetting(channelSettings, "sanitizeMessage") == false)
messageFormat = messageFormat.replace("\n", "<reset>\n")
messageFormat = messageFormat.lines().joinToString("\n") { line -> "${line}<reset>" }
if (enabledFeatures.contains(Feature.FORMATTING))
append("<reset>${messageFormat}")