diff --git a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js index 1c9ae515..ad98d6c6 100644 --- a/zefie_wtvp_minisrv/includes/classes/WTVIRC.js +++ b/zefie_wtvp_minisrv/includes/classes/WTVIRC.js @@ -122,9 +122,6 @@ class WTVIRC { socket.push(firstChunk); secureSocket.on('error', (err) => { - if (this.debug) { - console.error('TLS error:', err); - } this.terminateSession(secureSocket, true); }); @@ -1863,6 +1860,10 @@ class WTVIRC { if (!chan_modes || chan_modes === true) { chan_modes = []; } + if (!socket.secure) { + socket.write(`:${this.servername} 484 ${nickname} ${channel} :You must be connected via SSL/TLS to set +z\r\n`); + return; + } this.channelmodes.set(channel, [...chan_modes, 'z']); if (this.kick_insecure_on_z) { const usersInChannel = this.channels.get(channel) || new Set();