aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-07 15:47:03 +0200
committerGitHub <noreply@github.com>2024-05-07 23:47:03 +1000
commitc951723119499415cc1856e92348501ea85013a0 (patch)
tree0eaf3b6a8f768e69c9779b746b7b83d464cdd679 /src/main
parent723b46a14897468382d1e6e17c0db2091ad50e78 (diff)
downloadskyhanni-c951723119499415cc1856e92348501ea85013a0.tar.gz
skyhanni-c951723119499415cc1856e92348501ea85013a0.tar.bz2
skyhanni-c951723119499415cc1856e92348501ea85013a0.zip
Fix: Stash chat (#1716)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt
index f60247c0d..c19fa4a42 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/hypixel/chat/PlayerChatManager.kt
@@ -66,13 +66,14 @@ class PlayerChatManager {
/**
* REGEX-TEST: To nea89o: lol
* REGEX-TEST: From nea89o: hiii
+ * REGEX-TEST: §eFrom stash: §r§fPufferfish
* REGEX-TEST: To [MVP+] Eisengolem: Boop!
* REGEX-TEST: From [MVP+] Eisengolem: Boop!
* REGEX-TEST: To [MVP+] Eisengolem: danke
*/
private val privateMessagePattern by patternGroup.pattern(
"privatemessage",
- "(?<direction>From|To) (?<author>[^:]*): (?<message>.*)"
+ "^(?!§eFrom stash: §r)(?<direction>From|To) (?<author>[^:]*): (?<message>.*)"
)
/**