hirc

IRC client
Log | Files | Refs

commit 10d5eeaddd81e80792815e379feb981d33e8174d
parent abff8da3b346a03d1a2f9f4e0ec74d76f6ef4dca
Author: hhvn <dev@hhvn.uk>
Date:   Thu,  2 Dec 2021 22:53:36 +0000

handle.c: fix strcmp

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

diff --git a/handle.c b/handle.c @@ -137,7 +137,7 @@ handle_PART(char *msg, char **params, struct Server *server, time_t timestamp) { if (nick_isself(nick)) { chan_setold(chan, 1); nick_free_list(&chan->nicks); - if (chan == selected.channel && strcmp_n(target, handle_expect_get(server, Expect_part))) { + if (chan == selected.channel && strcmp_n(target, handle_expect_get(server, Expect_part)) == 0) { ui_select(selected.server, NULL); handle_expect(server, Expect_part, NULL); }