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);