From e537d683091b2b0a670a83accc99ac91ff7cf4b6 Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 3 Apr 2014 16:56:03 +0100 Subject: [PATCH] Allow plugins to open new IRC connections --- client/src/app.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/app.js b/client/src/app.js index 292010f..b4f86f8 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -153,6 +153,15 @@ _kiwi.global = { // Allow plugins to change the startup applet registerStartupApplet: function(startup_applet_name) { _kiwi.app.startup_applet_name = startup_applet_name; + }, + + /** + * Open a new IRC connection + * @param {Object} connection_details {nick, host, port, ssl, password, options} + * @param {Function} callback function(err, network){} + */ + newIrcConnection: function(connection_details, callback) { + _kiwi.gateway.newConnection(connection_details, callback); } }; -- 2.25.1