From: Darren Date: Fri, 19 Sep 2014 13:53:30 +0000 (+0100) Subject: Kiwi server connect plugin event X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=127d8196349e390b4725049512f3e6c1c8c64e10;p=KiwiIRC.git Kiwi server connect plugin event --- diff --git a/client/src/models/application.js b/client/src/models/application.js index 7a97e3b..aab897d 100644 --- a/client/src/models/application.js +++ b/client/src/models/application.js @@ -210,6 +210,11 @@ that.view.$el.addClass('connected'); + // Make the rpc globally available for plugins + _kiwi.global.rpc = _kiwi.gateway.rpc; + + _kiwi.global.events.emit('connected'); + // If we were reconnecting, show some messages we have connected back OK if (gw_stat === 1) {