From 4a2e62386f41db81427108ea28a35d71ee7b1ded Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Sun, 23 Apr 2017 10:28:48 +0200 Subject: [PATCH] Fixed missing callback :S --- client.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.js b/client.js index de9f288d..1ebe80fd 100644 --- a/client.js +++ b/client.js @@ -69,6 +69,9 @@ function messageInterface(command, callback) { serverprocess.stdin.write("/c command;\n") */ serverprocess.stdin.write(command+"\n"); + if(typeof callback == "function"){ + callback(); + } } else if(typeof command == "string" && client && client.exec && typeof client.exec == "function") { try { client.exec(command, callback);