From 3bb1f1241050d227932d5153abf49fdce9939efb Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 5 May 2016 23:51:49 +0100 Subject: Add session.c --- src/ui/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/console.c') diff --git a/src/ui/console.c b/src/ui/console.c index 9d21f2d7..d697aff2 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -845,7 +845,7 @@ cons_show_account_list(gchar **accounts) cons_show("Accounts:"); int i = 0; for (i = 0; i < size; i++) { - if ((jabber_get_connection_status() == JABBER_CONNECTED) && + if ((connection_get_status() == JABBER_CONNECTED) && (g_strcmp0(jabber_get_account_name(), accounts[i]) == 0)) { resource_presence_t presence = accounts_get_last_presence(accounts[i]); theme_item_t presence_colour = theme_main_presence_attrs(string_from_resource_presence(presence)); @@ -961,7 +961,7 @@ cons_show_account(ProfAccount *account) account->priority_chat, account->priority_online, account->priority_away, account->priority_xa, account->priority_dnd); - if ((jabber_get_connection_status() == JABBER_CONNECTED) && + if ((connection_get_status() == JABBER_CONNECTED) && (g_strcmp0(jabber_get_account_name(), account->name) == 0)) { GList *resources = jabber_get_available_resources(); GList *ordered_resources = NULL; -- cgit 1.4.1-2-gfad0