From: Darren Date: Sat, 31 May 2014 20:30:40 +0000 (+0100) Subject: Let plugins use rpcCall() X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6636cc9e3cda2753a7db1cc697ea522fb359e31a;p=KiwiIRC.git Let plugins use rpcCall() --- diff --git a/client/src/app.js b/client/src/app.js index 748a28b..e4b6523 100644 --- a/client/src/app.js +++ b/client/src/app.js @@ -120,6 +120,9 @@ _kiwi.global = { // Event emitter to let plugins interface with parts of kiwi _kiwi.global.events = new PluginInterface(); + // Let plugins interface with the RPC calls + _kiwi.globals.rpcCall = _kiwi.gateway.rpcCall; + // Now everything has started up, load the plugin manager for third party plugins _kiwi.global.plugins = new _kiwi.model.PluginManager(); @@ -350,4 +353,4 @@ if (typeof global !== 'undefined') { } else { // Not within a closure so set a var in the current scope var kiwi = _kiwi.global; -} \ No newline at end of file +}