From 4d4de3a27f39b1a7763ae795c940ac0374964e20 Mon Sep 17 00:00:00 2001 From: delvh Date: Fri, 24 Jul 2020 13:42:39 +0200 Subject: [PATCH] Update client/src/main/java/envoy/client/ui/controller/ChatScene.java Co-authored-by: CyB3RC0nN0R --- client/src/main/java/envoy/client/ui/controller/ChatScene.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/main/java/envoy/client/ui/controller/ChatScene.java b/client/src/main/java/envoy/client/ui/controller/ChatScene.java index b561638..a05150c 100644 --- a/client/src/main/java/envoy/client/ui/controller/ChatScene.java +++ b/client/src/main/java/envoy/client/ui/controller/ChatScene.java @@ -516,8 +516,7 @@ public final class ChatScene implements Restorable { return; } final var text = messageTextArea.getText().strip(); - final var systemCommandPresent = messageTextAreaCommands.executeIfAnyPresent(text); - if (systemCommandPresent) {} else try { + if (!messageTextAreaCommands.executeIfAnyPresent(text)) try { // Creating the message and its metadata final var builder = new MessageBuilder(localDB.getUser().getID(), currentChat.getRecipient().getID(), localDB.getIDGenerator()) .setText(text);