fix
This commit is contained in:
@@ -4073,9 +4073,11 @@ class WTVIRC {
|
|||||||
if (!chan_modes || chan_modes === true) {
|
if (!chan_modes || chan_modes === true) {
|
||||||
chan_modes = [];
|
chan_modes = [];
|
||||||
}
|
}
|
||||||
this.channelmodes.set(channel, (chan_modes).filter(m => m !== 'S'));
|
if (chan_modes.includes('S')) {
|
||||||
this.broadcastChannel(channel, `:${nickname}!${username}@${socket.host} MODE ${channel} -S\r\n`);
|
this.channelmodes.set(channel, (chan_modes).filter(m => m !== 'S'));
|
||||||
this.broadcastToAllServers(`:${socket.uniqueId} 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`);
|
||||||
|
}
|
||||||
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user