Skip to content

Commit

Permalink
Revert old logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
M0diis committed Feb 27, 2024
1 parent 85eee87 commit ba14975
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public static boolean process(
return false;
}

final var oldChannel = user.channel();
user.channel(channel);

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

if (!userIsTarget) {
user.channel(oldChannel);
return true;
}

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

user.channel(oldChannel);
return true;
}

Expand Down

0 comments on commit ba14975

Please sign in to comment.