From e56d0c3be0b4605a3cdeebc6b9bf079b0eed1755 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sat, 17 Dec 2016 00:09:44 +0200 Subject: [PATCH] Fix #792: irc-fw update changed socket reference --- src/plugins/irc-events/connection.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/irc-events/connection.js b/src/plugins/irc-events/connection.js index d47c4cfe..b4b95251 100644 --- a/src/plugins/irc-events/connection.js +++ b/src/plugins/irc-events/connection.js @@ -64,16 +64,16 @@ module.exports = function(irc, network) { }); if (identd.isEnabled()) { - irc.on("socket connected", function() { - identd.hook(irc.connection.socket, client.name || network.username); + irc.on("raw socket connected", function(socket) { + identd.hook(socket, client.name || network.username); }); } if (identHandler) { let identSocketId; - irc.on("socket connected", function() { - identSocketId = identHandler.addSocket(irc.connection.socket, client.name || network.username); + irc.on("raw socket connected", function(socket) { + identSocketId = identHandler.addSocket(socket, client.name || network.username); }); irc.on("socket close", function() {