aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-24 11:30:33 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-24 11:30:33 +0200
commit685b5c7f0bd46a8303efe22b648ede20f51e871d (patch)
tree951e9e12653e37e1a85c85d283610f21b93108cb /src/main/java/at/hannibal2
parentea8addc453eed5d70cf33a8b42c37cf7b4c067c8 (diff)
downloadskyhanni-685b5c7f0bd46a8303efe22b648ede20f51e871d.tar.gz
skyhanni-685b5c7f0bd46a8303efe22b648ede20f51e871d.tar.bz2
skyhanni-685b5c7f0bd46a8303efe22b648ede20f51e871d.zip
removing §r at the beginning and end of chat messages when copying from /shchathistory, like in lorenzchat events
Diffstat (limited to 'src/main/java/at/hannibal2')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt
index 0cf4f5b57..b12802f3b 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/chat/ChatFilterGui.kt
@@ -62,7 +62,8 @@ class ChatFilterGui(private val history: List<ChatManager.MessageFilteringResult
OSUtils.copyToClipboard(IChatComponent.Serializer.componentToJson(msg.message))
LorenzUtils.chat("Copied structured chat line to clipboard")
} else {
- OSUtils.copyToClipboard(msg.message.formattedText)
+ val message = LorenzUtils.stripVanillaMessage(msg.message.formattedText)
+ OSUtils.copyToClipboard(message)
LorenzUtils.chat("Copied chat line to clipboard")
}
}