Fixed missing callback :S

This commit is contained in:
Danielv123 committed 2017-04-23 10:30:09 +02:00
1 parent 5d51e9e80a
commit 4a2e62386f
1 file changed
+3
+3
View File
@@ -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);