From 7b8d33500aa21ac04f580e0bf177f487678fd2b1 Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 18 Aug 2013 01:50:42 +0100 Subject: [PATCH] Jumpserver warning if no kiwi server given --- server/controlinterface.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/controlinterface.js b/server/controlinterface.js index 89bd4dc..091bc1f 100644 --- a/server/controlinterface.js +++ b/server/controlinterface.js @@ -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.'); -- 2.25.1