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:
parent
c4fcc0c3cb
commit
ff6038fe32
@ -87,15 +87,13 @@ sv_ev_login_account_success(char *account_name, gboolean secured)
|
|||||||
|
|
||||||
ui_handle_login_account_success(account, secured);
|
ui_handle_login_account_success(account, secured);
|
||||||
|
|
||||||
// attempt to rejoin rooms with passwords
|
// attempt to rejoin all rooms
|
||||||
GList *rooms = muc_rooms();
|
GList *rooms = muc_rooms();
|
||||||
GList *curr = rooms;
|
GList *curr = rooms;
|
||||||
while (curr) {
|
while (curr) {
|
||||||
char *password = muc_password(curr->data);
|
char *password = muc_password(curr->data);
|
||||||
if (password) {
|
|
||||||
char *nick = muc_nick(curr->data);
|
char *nick = muc_nick(curr->data);
|
||||||
presence_join_room(curr->data, nick, password);
|
presence_join_room(curr->data, nick, password);
|
||||||
}
|
|
||||||
curr = g_list_next(curr);
|
curr = g_list_next(curr);
|
||||||
}
|
}
|
||||||
g_list_free(rooms);
|
g_list_free(rooms);
|
||||||
|
Loading…
Reference in New Issue
Block a user