Including state object in 'irc connecting' module event
authorDarren <darren@darrenwhitlen.com>
Sat, 31 May 2014 20:14:53 +0000 (21:14 +0100)
committerDarren <darren@darrenwhitlen.com>
Sat, 31 May 2014 20:14:53 +0000 (21:14 +0100)
server/irc/state.js

index 375f63dae9009b24e8176c243a247b38e82527b7..bd89fcca1afe273e8ea42994e29d2116f9b24c4a 100755 (executable)
@@ -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();
         });