This commit is contained in:
zefie
2025-06-17 20:04:20 -04:00
parent e51e5ebc61
commit 8961bfa71e

View File

@@ -4073,9 +4073,11 @@ class WTVIRC {
if (!chan_modes || chan_modes === true) { if (!chan_modes || chan_modes === true) {
chan_modes = []; chan_modes = [];
} }
if (chan_modes.includes('S')) {
this.channelmodes.set(channel, (chan_modes).filter(m => m !== 'S')); this.channelmodes.set(channel, (chan_modes).filter(m => m !== 'S'));
this.broadcastChannel(channel, `:${nickname}!${username}@${socket.host} MODE ${channel} -S\r\n`); this.broadcastChannel(channel, `:${nickname}!${username}@${socket.host} MODE ${channel} -S\r\n`);
this.broadcastToAllServers(`:${socket.uniqueId} MODE ${channel} -S\r\n`); this.broadcastToAllServers(`:${socket.uniqueId} MODE ${channel} -S\r\n`);
}
return; return;
} else if (mode.startsWith('+t')) { } else if (mode.startsWith('+t')) {
var chan_modes = this.channelmodes.get(channel); var chan_modes = this.channelmodes.get(channel);