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

Rejoin all MUCs on reconnect

Should fix https://github.com/profanity-im/profanity/issues/1120
This commit is contained in:
Michael Vetter 2019-06-10 23:18:43 +02:00
parent c4fcc0c3cb
commit ff6038fe32

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);
}
curr = g_list_next(curr);
}
g_list_free(rooms);