From 000c53a079dd0579270234c7e58c094272e55557 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 23 Jul 2023 09:12:09 +0700 Subject: [PATCH] forgor --- .../land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java index c54df19..0b75601 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/EvalPlugin.java @@ -60,6 +60,8 @@ public class EvalPlugin { socket.on(BRIDGE_PREFIX + function.name, args -> { final EvalFunction.Output output = function.execute(args); + if (output == null) return; + socket.emit("functionOutput:" + function.name, output.message, output.parseJSON); }); }