about summary refs log tree commit diff stats
path: root/src/ui/core.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-03 02:04:04 +0100
committerJames Booth <boothj5@gmail.com>2015-05-03 02:04:04 +0100
commit4e1c2a4f64fd3ed97b9200472f9f627cf16728d4 (patch)
treebad645f8106c63a184d562c13058340081da1976 /src/ui/core.c
parentf25f90b38bfa72960f0290231696073966f58c69 (diff)
downloadprofani-tty-4e1c2a4f64fd3ed97b9200472f9f627cf16728d4.tar.gz
Show resource in status bar
Diffstat (limited to 'src/ui/core.c')
-rw-r--r--src/ui/core.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 946e3eaf..9deca664 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -618,7 +618,12 @@ ui_handle_login_account_success(ProfAccount *account)
     contact_presence_t contact_presence = contact_presence_from_resource_presence(resource_presence);
     cons_show_login_success(account);
     title_bar_set_presence(contact_presence);
-    status_bar_print_message(account->jid);
+
+    GString *fulljid = g_string_new(account->jid);
+    g_string_append(fulljid, "/");
+    g_string_append(fulljid, account->resource);
+    status_bar_print_message(fulljid->str);
+    g_string_free(fulljid, TRUE);
     status_bar_update_virtual();
 }