aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/chat
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-03-21 01:15:45 -0500
committeringlettronald <inglettronald@gmail.com>2023-03-21 01:15:45 -0500
commite1a4e3db0b3033b4099d77f0bb7d08b60f2c7a73 (patch)
tree6e04ef5c15c4c53f38e44981b1660b9e5e0ab667 /src/main/kotlin/dulkirmod/features/chat
parentd78b2e302f3dd94afb34c62e5fa282a0b10e6bbf (diff)
downloadDulkirMod-e1a4e3db0b3033b4099d77f0bb7d08b60f2c7a73.tar.gz
DulkirMod-e1a4e3db0b3033b4099d77f0bb7d08b60f2c7a73.tar.bz2
DulkirMod-e1a4e3db0b3033b4099d77f0bb7d08b60f2c7a73.zip
dragon stuff and some random things i forget
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/chat')
-rw-r--r--src/main/kotlin/dulkirmod/features/chat/FakeMsg.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/dulkirmod/features/chat/FakeMsg.kt b/src/main/kotlin/dulkirmod/features/chat/FakeMsg.kt
index e1b618f..8e4d2dd 100644
--- a/src/main/kotlin/dulkirmod/features/chat/FakeMsg.kt
+++ b/src/main/kotlin/dulkirmod/features/chat/FakeMsg.kt
@@ -4,7 +4,7 @@ import dulkirmod.utils.TextUtils
import net.minecraftforge.client.event.ClientChatReceivedEvent
object FakeMsg {
- private val dulkirRegex = "From \\[MVP(\\+|\\+\\+)] Dulkir: c:".toRegex()
+ private val dulkirRegex = "^From \\[MVP(\\+|\\+\\+)] Dulkir: c:".toRegex()
fun handle(event: ClientChatReceivedEvent, unformatted: String) {
if (dulkirRegex.matches(unformatted)) {
event.isCanceled = true