From: Darren Date: Sun, 18 Aug 2013 00:50:42 +0000 (+0100) Subject: Jumpserver warning if no kiwi server given X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7b8d33500aa21ac04f580e0bf177f487678fd2b1;p=KiwiIRC.git Jumpserver warning if no kiwi server given --- 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.');