send remote addr in connect notices

This commit is contained in:
zefie
2025-06-17 18:56:42 -04:00
parent f8f6ea2f3d
commit f83af2eca5

View File

@@ -4323,9 +4323,9 @@ class WTVIRC {
for (const [index, socket] of this.clients.entries()) {
if (socket !== clientSocket && this.isSpyingOnConnections(socket.nickname)) {
if (quitMsg) {
this.sendWebTVNoticeTo(socket, `*** Notice --- Client exiting: ${clientSocket.nickname} (${clientSocket.username}@${clientSocket.host}) [${clientSocket.realhost}] [${quitMsg}]`);
this.sendWebTVNoticeTo(socket, `*** Notice --- Client exiting: ${clientSocket.nickname} (${clientSocket.username}@${clientSocket.host}) [${clientSocket.remoteAddress}] [${quitMsg}]`);
} else {
this.sendWebTVNoticeTo(socket, `*** Notice --- Client connecting: ${clientSocket.nickname} (${clientSocket.username}@${clientSocket.host}) [${clientSocket.realhost}] {users} [${clientSocket.userinfo}] <${clientSocket.uniqueId}>`);
this.sendWebTVNoticeTo(socket, `*** Notice --- Client connecting: ${clientSocket.nickname} (${clientSocket.username}@${clientSocket.host}) [${clientSocket.remoteAddress}] {users} [${clientSocket.userinfo}] <${clientSocket.uniqueId}>`);
}
}
}