diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-06-11 06:39:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 06:39:42 +0200 |
commit | da54eaf42b88be62bfebbb84dd11cb9bdd4cd9bd (patch) | |
tree | cec64c18571d2912499ec4af7d08b0f2018152c5 /src/event | |
parent | c4fcc0c3cb146e98ec7854b177a2f1869b913b99 (diff) | |
parent | ff6038fe3297947eec6ebf883e91e79a6f9a0386 (diff) | |
download | profani-tty-da54eaf42b88be62bfebbb84dd11cb9bdd4cd9bd.tar.gz |
Merge pull request #1127 from profanity-im/fix/1120-rejoin-mucs-on-reconnect
Rejoin all MUCs on reconnect
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 8 |
1 files 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); |