From 30e3ec392f1ba01326d069e2d89ebc0077405cad Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 4 Dec 2021 16:52:38 +0100 Subject: [PATCH] Update channel join status when kicked --- state.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/state.js b/state.js index fb3507e..c38425d 100644 --- a/state.js +++ b/state.js @@ -463,7 +463,10 @@ export const State = { return updateBuffer(channel, (buf) => { let members = new irc.CaseMapMap(buf.members); members.delete(nick); - return { members }; + + let joined = buf.joined && !client.isMyNick(nick); + + return { members, joined }; }); case "QUIT": buffers = new Map(state.buffers);