aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/ledger/ChatReceived.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-02-15 21:59:56 +0100
committerLinnea Gräf <nea@nea.moe>2024-02-15 21:59:56 +0100
commit277643f8c39ad02d9485f7fc9039243f098ec383 (patch)
treeb14325e5188a0998510f15ece249c377c9090368 /src/main/kotlin/moe/nea/ledger/ChatReceived.kt
parentebe98ada20e5de258f5c4eee6bfa7f8ae79489b9 (diff)
downloadLocalTransactionLedger-277643f8c39ad02d9485f7fc9039243f098ec383.tar.gz
LocalTransactionLedger-277643f8c39ad02d9485f7fc9039243f098ec383.tar.bz2
LocalTransactionLedger-277643f8c39ad02d9485f7fc9039243f098ec383.zip
use higher priority and add logging
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