From 2190c0a07538ff012c7606515455ad83aab9b733 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Mon, 5 Jul 2021 22:59:54 +0100 Subject: [PATCH] oh my fucking god --- connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connection.c b/connection.c index dafaf5b..8e31a18 100644 --- a/connection.c +++ b/connection.c @@ -113,7 +113,8 @@ int connection__presence_handler(xmpp_conn_t *conn, xmpp_stanza_t *stanza, void { if (weechat_strcasecmp(role, "none") == 0) channel__remove_member(account, channel, from); - channel__add_member(account, channel, from); + else + channel__add_member(account, channel, from); } return 1;