Clear user lists on all channels when disconnected from network
This commit is contained in:
parent
839b07fdc2
commit
7c8441a93b
@ -37,7 +37,10 @@ socket.on("network:status", function(data) {
|
||||
network.status.secure = data.secure;
|
||||
|
||||
if (!data.connected) {
|
||||
network.channels.forEach((channel) => channel.state = 0);
|
||||
network.channels.forEach((channel) => {
|
||||
channel.users = [];
|
||||
channel.state = 0;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -92,6 +92,7 @@ module.exports = function(irc, network) {
|
||||
}
|
||||
|
||||
network.channels.forEach((chan) => {
|
||||
chan.users = new Map();
|
||||
chan.state = Chan.State.PARTED;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user