From: Darren Date: Sat, 31 May 2014 20:14:53 +0000 (+0100) Subject: Including state object in 'irc connecting' module event X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=17ac74fab28c46bf4795361fbf655054d5496485;p=KiwiIRC.git Including state object in 'irc connecting' module event --- diff --git a/server/irc/state.js b/server/irc/state.js index 375f63d..bd89fcc 100755 --- a/server/irc/state.js +++ b/server/irc/state.js @@ -79,7 +79,7 @@ State.prototype.connect = function (hostname, port, ssl, nick, user, options, ca }); // Call any modules before making the connection - global.modules.emit('irc connecting', {connection: con}) + global.modules.emit('irc connecting', {state: this, connection: con}) .done(function () { con.connect(); });