aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/ChatReceived.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/moe/nea/ledger/ChatReceived.kt')
-rw-r--r--src/main/kotlin/moe/nea/ledger/ChatReceived.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/kotlin/moe/nea/ledger/ChatReceived.kt b/src/main/kotlin/moe/nea/ledger/ChatReceived.kt
index 5e19083..f3c4c50 100644
--- a/src/main/kotlin/moe/nea/ledger/ChatReceived.kt
+++ b/src/main/kotlin/moe/nea/ledger/ChatReceived.kt
@@ -9,7 +9,6 @@ data class ChatReceived(
val timestamp: Instant = Instant.now()
) : Event() {
constructor(event: ClientChatReceivedEvent) : this(
- event.message.unformattedText
- .replace("ยง.".toRegex(), "")
+ event.message.unformattedText.unformattedString()
)
} \ No newline at end of file