about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c4
1 files changed, 2 insertions, 2 deletions
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;