diff options
author | James Booth <boothj5@gmail.com> | 2013-01-27 00:02:28 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2013-01-27 00:02:28 +0000 |
commit | 1a30ee15e04bdd950bdab94e2d5e7b6e86c7e7c5 (patch) | |
tree | 0ca9abe7478f18cf9d199964b37bf4e2e9443003 /src/windows.c | |
parent | 43841ee9eec525c52b60d40537781f9f286e053e (diff) | |
download | profani-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.c | 11 |
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(""); } |