Refactored connecting, and reconnecting
The user either logs in with an account, in which case its name, and the password is kept for reconnects. Or the user can login with a jid (and server) which does not currently exist as a local account. On success an account is created, with the jid as the name.
This commit is contained in:
@@ -213,20 +213,6 @@ prof_handle_login_account_success(char *account_name)
|
||||
accounts_free_account(account);
|
||||
}
|
||||
|
||||
void
|
||||
prof_handle_login_success(const char *jid, const char *altdomain)
|
||||
{
|
||||
const char *msg = "logged in successfully.";
|
||||
cons_show("%s %s", jid, msg);
|
||||
title_bar_set_status(PRESENCE_ONLINE);
|
||||
log_info("%s %s", jid, msg);
|
||||
win_current_page_off();
|
||||
status_bar_print_message(jid);
|
||||
status_bar_refresh();
|
||||
|
||||
accounts_add(jid, altdomain);
|
||||
}
|
||||
|
||||
void
|
||||
prof_handle_gone(const char * const from)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user