From 17ac74fab28c46bf4795361fbf655054d5496485 Mon Sep 17 00:00:00 2001 From: Darren Date: Sat, 31 May 2014 21:14:53 +0100 Subject: [PATCH] Including state object in 'irc connecting' module event --- server/irc/state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }); -- 2.25.1