Merge pull request #802 from thelounge/xpaw/irc-fw-socket-fix
Fix #792: irc-fw update changed socket reference
This commit is contained in:
commit
8ba34f12de
@ -64,16 +64,16 @@ module.exports = function(irc, network) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (identd.isEnabled()) {
|
if (identd.isEnabled()) {
|
||||||
irc.on("socket connected", function() {
|
irc.on("raw socket connected", function(socket) {
|
||||||
identd.hook(irc.connection.socket, client.name || network.username);
|
identd.hook(socket, client.name || network.username);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (identHandler) {
|
if (identHandler) {
|
||||||
let identSocketId;
|
let identSocketId;
|
||||||
|
|
||||||
irc.on("socket connected", function() {
|
irc.on("raw socket connected", function(socket) {
|
||||||
identSocketId = identHandler.addSocket(irc.connection.socket, client.name || network.username);
|
identSocketId = identHandler.addSocket(socket, client.name || network.username);
|
||||||
});
|
});
|
||||||
|
|
||||||
irc.on("socket close", function() {
|
irc.on("socket close", function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user