mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
Send hexip in ident responses
This commit is contained in:
parent
cdb810ebc5
commit
df04d697b1
1 changed files with 7 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue