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:
commit
da54eaf42b
@ -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