From 48f54e2086244400100eaa16ff1854e4db048237 Mon Sep 17 00:00:00 2001 From: Michael Ortmann <41313082+michaelortmann@users.noreply.github.com> Date: Tue, 29 Oct 2024 03:59:57 +0100 Subject: [PATCH] Dont call killmember() in gotpart(), if we already know it is not ismember() --- src/mod/irc.mod/chan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/irc.mod/chan.c b/src/mod/irc.mod/chan.c index 00dcf0c4b..198fcec02 100644 --- a/src/mod/irc.mod/chan.c +++ b/src/mod/irc.mod/chan.c @@ -2280,7 +2280,8 @@ static int gotpart(char *from, char *msg) if (!chan) return 0; - killmember(chan, nick); + if (m) + killmember(chan, nick); if (msg[0]) putlog(LOG_JOIN, chan->dname, "%s (%s) left %s (%s).", nick, from, chan->dname, msg);