about summary refs log tree commit diff stats
path: root/src/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-27 00:02:28 +0000
committerJames Booth <boothj5@gmail.com>2013-01-27 00:02:28 +0000
commit1a30ee15e04bdd950bdab94e2d5e7b6e86c7e7c5 (patch)
tree0ca9abe7478f18cf9d199964b37bf4e2e9443003 /src/windows.c
parent43841ee9eec525c52b60d40537781f9f286e053e (diff)
downloadprofani-tty-1a30ee15e04bdd950bdab94e2d5e7b6e86c7e7c5.tar.gz
Added resource handling in account module
Handle old accounts on load
Diffstat (limited to 'src/windows.c')
-rw-r--r--src/windows.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/windows.c b/src/windows.c
index da4b664f..01fe4b7a 100644
--- a/src/windows.c
+++ b/src/windows.c
@@ -1227,14 +1227,17 @@ void
 cons_show_account(ProfAccount *account)
 {
     cons_show("%s account details:", account->name);
-    cons_show("jid     : %s", account->jid);
     if (account->enabled) {
-        cons_show("enabled : TRUE");
+        cons_show("enabled   : TRUE");
     } else {
-        cons_show("enabled : FALSE");
+        cons_show("enabled   : FALSE");
+    }
+    cons_show("jid       : %s", account->jid);
+    if (account->resource != NULL) {
+        cons_show("resource  : %s", account->resource);
     }
     if (account->server != NULL) {
-        cons_show("server  : %s", account->server);
+        cons_show("server    : %s", account->server);
     }
     cons_show("");
 }