Show current presence when logging in

Also show correct presence in title bar upon login
This commit is contained in:
James Booth
2013-01-31 00:40:27 +00:00
parent e6749d669d
commit 06abe13f19
6 changed files with 42 additions and 8 deletions

View File

@@ -198,11 +198,10 @@ void
prof_handle_login_account_success(char *account_name)
{
ProfAccount *account = accounts_get_account(account_name);
const char *msg = "logged in successfully.";
cons_show("%s %s", account->jid, msg);
title_bar_set_status(PRESENCE_ONLINE);
log_info("%s %s", account->jid, msg);
jabber_presence_t presence = accounts_get_login_presence(account->name);
cons_show_login_success(account);
title_bar_set_status(presence);
log_info("%s logged in successfully", account->jid);
win_current_page_off();
status_bar_print_message(account->jid);
status_bar_refresh();