projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4096676
)
Jumpserver warning if no kiwi server given
author
Darren
<darren@darrenwhitlen.com>
Sun, 18 Aug 2013 00:50:42 +0000
(
01:50
+0100)
committer
Darren
<darren@darrenwhitlen.com>
Sun, 18 Aug 2013 00:50:42 +0000
(
01:50
+0100)
server/controlinterface.js
patch
|
blob
|
blame
|
history
diff --git
a/server/controlinterface.js
b/server/controlinterface.js
index 89bd4dce0bb68f4174623ad72da7544fdcd4f9e9..091bc1fa486e006ad9c2086ae5d2109061689f34 100644
(file)
--- 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.');