From ff6038fe3297947eec6ebf883e91e79a6f9a0386 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 10 Jun 2019 23:18:43 +0200 Subject: [PATCH] Rejoin all MUCs on reconnect Should fix https://github.com/profanity-im/profanity/issues/1120 --- src/event/server_events.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/event/server_events.c b/src/event/server_events.c index b76f7cfa..7b57ef4b 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -87,15 +87,13 @@ sv_ev_login_account_success(char *account_name, gboolean secured) ui_handle_login_account_success(account, secured); - // attempt to rejoin rooms with passwords + // attempt to rejoin all rooms GList *rooms = muc_rooms(); GList *curr = rooms; while (curr) { char *password = muc_password(curr->data); - if (password) { - char *nick = muc_nick(curr->data); - presence_join_room(curr->data, nick, password); - } + char *nick = muc_nick(curr->data); + presence_join_room(curr->data, nick, password); curr = g_list_next(curr); } g_list_free(rooms);