Skip to content

Commit ba14975

Browse files
author
M0diis
committed
Revert old logic.
1 parent 85eee87 commit ba14975

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugin/src/main/java/at/helpch/chatchat/util/MessageProcessor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public static boolean process(
113113
return false;
114114
}
115115

116+
final var oldChannel = user.channel();
116117
user.channel(channel);
117118

118119
final var parsedMessage = chatEvent.message().compact();
@@ -182,6 +183,7 @@ public static boolean process(
182183
}
183184

184185
if (!userIsTarget) {
186+
user.channel(oldChannel);
185187
return true;
186188
}
187189

@@ -207,6 +209,7 @@ public static boolean process(
207209
user.playSound(mentions.sound());
208210
}
209211

212+
user.channel(oldChannel);
210213
return true;
211214
}
212215

0 commit comments

Comments
 (0)