hirc

IRC client
Log | Files | Refs

commit 36716e54a99c91ea65a676e6c365b76c757aa1b4
parent 19ae3eb85b53e4557a10b2f43b7f49e33f7ac494
Author: hhvn <dev@hhvn.uk>
Date:   Sun,  3 Apr 2022 10:56:07 +0100

Only send PART on /close if still in channel

Diffstat:
Msrc/commands.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/commands.c b/src/commands.c @@ -1817,7 +1817,7 @@ command_close) { } if (chp) { - if (serv_ischannel(sp, chp->name)) { + if (serv_ischannel(sp, chp->name) && !chp->old) { ircprintf(sp, "PART %s\r\n", chp->name); chan_remove(&sp->channels, chp->name); } else {