Send hexip in ident responses

This commit is contained in:
Pavel Djundik 2018-03-15 15:30:37 +02:00
parent cdb810ebc5
commit df04d697b1

View file

@ -75,7 +75,13 @@ module.exports = function(irc, network) {
let identSocketId;
irc.on("raw socket connected", function(socket) {
identSocketId = client.manager.identHandler.addSocket(socket, client.name || network.username);
let ident = client.name || network.username;
if (Helper.config.useHexIp) {
ident = Helper.ip2hex(network.ip);
}
identSocketId = client.manager.identHandler.addSocket(socket, ident);
});
irc.on("socket close", function(error) {