Skip to content

Commit 74123d2

Browse files
committed
Update message strings in processing loop when using replacement messages
1 parent b4f87ea commit 74123d2

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 2.3.1
4+
5+
- Fixed an issue with checking notifications on a replacement message
6+
37
## 2.3.0
48

59
- Redesigned options GUI
@@ -16,6 +20,7 @@
1620
- Added status bar message option
1721
- Adjusted title message option to match other custom message options
1822
- Fixed a network protocol error caused by referencing an empty capturing group
23+
- Updated Russian translation (rfin0)
1924
- Special thanks to aquahonoredhi for helping with design and testing of this update
2025

2126
## 2.3.0-beta.16

common/src/main/java/dev/terminalmc/chatnotify/util/MessageUtil.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ public class MessageUtil {
207207
if (notif.replacementMsgEnabled) {
208208
msg = convertMsg(notif.replacementMsg, subsMatcher);
209209
String str = msg.getString();
210+
cleanStr = FormatUtil.stripCodes(str);
211+
cleanOwnedStr = cleanStr;
210212

211213
// No other notifications can activate on a blank message
212214
if (str.isBlank()) return null;

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Neo/Forge version ranges: https://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
44

55
# Project
6-
mod_version=2.3.0+1.21
6+
mod_version=2.3.1+1.21
77
mod_group=dev.terminalmc
88
mod_id=chatnotify
99
mod_name=ChatNotify

0 commit comments

Comments
 (0)