Merge pull request #2237 from thelounge/xpaw/ident-hexip
Send hexip in ident responses
This commit is contained in:
commit
67f7975ced
@ -75,7 +75,13 @@ module.exports = function(irc, network) {
|
|||||||
let identSocketId;
|
let identSocketId;
|
||||||
|
|
||||||
irc.on("raw socket connected", function(socket) {
|
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) {
|
irc.on("socket close", function(error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user