diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index 63a2b463..2770f64f 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -276,10 +276,10 @@ class WTVIRC { socket.upgrading_to_tls = false; socket.error_count = 0; await this.doInitialHandshake(socket); - + socket.on('timeout', () => { this.debugLog('warn', `Socket timeout for ${socket.remoteAddress}`); - this.broadcastUser(socket.nickname, `:${socket.nickname}!${socket.username}@${socket.host} QUIT :Ping Timeout (${this.socket_timeout / 1000} seconds)\r\n`); + this.broadcastUser(socket.nickname, `:${socket.nickname}!${socket.username}@${socket.host} QUIT :Ping Timeout (${this.socket_timeout / 1000} seconds)\r\n`, socket); this.terminateSession(socket, true); });