mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Ensure saved_account is set before calling sv_ev_login_account_success
This commit is contained in:
parent
031e906035
commit
f7ce1607f9
@ -308,11 +308,11 @@ session_login_success(gboolean secured)
|
||||
accounts_add(saved_details.name, saved_details.altdomain, saved_details.port, saved_details.tls_policy);
|
||||
accounts_set_jid(saved_details.name, saved_details.jid);
|
||||
|
||||
sv_ev_login_account_success(saved_details.name, secured);
|
||||
saved_account.name = strdup(saved_details.name);
|
||||
saved_account.passwd = strdup(saved_details.passwd);
|
||||
|
||||
_session_free_saved_details();
|
||||
sv_ev_login_account_success(saved_account.name, secured);
|
||||
}
|
||||
|
||||
roster_request();
|
||||
|
Loading…
Reference in New Issue
Block a user