1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Merge pull request #1127 from profanity-im/fix/1120-rejoin-mucs-on-reconnect

Rejoin all MUCs on reconnect
This commit is contained in:
Michael Vetter 2019-06-11 06:39:42 +02:00 committed by GitHub
commit da54eaf42b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);