Jumpserver warning if no kiwi server given
authorDarren <darren@darrenwhitlen.com>
Sun, 18 Aug 2013 00:50:42 +0000 (01:50 +0100)
committerDarren <darren@darrenwhitlen.com>
Sun, 18 Aug 2013 00:50:42 +0000 (01:50 +0100)
server/controlinterface.js

index 89bd4dce0bb68f4174623ad72da7544fdcd4f9e9..091bc1fa486e006ad9c2086ae5d2109061689f34 100644 (file)
@@ -114,6 +114,11 @@ commands.jumpserver = function(args, raw) {
 
     packet.kiwi_server = args[args_idx];
 
+    if (!packet.kiwi_server) {
+        this.write('No Kiwi server specified');
+        return;
+    }
+
     this.write('Broadcasting jumpserver to ' + num_clients.toString() + ' clients..');
     global.clients.broadcastKiwiCommand('jumpserver', packet, function() {
         that.write('Broadcast complete.');