Merge pull request #2237 from thelounge/xpaw/ident-hexip

Send hexip in ident responses
This commit is contained in:
Jérémie Astori 2018-03-15 22:06:48 -04:00 committed by GitHub
commit 67f7975ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {