From 5a107459be1d8642897a6efc8ded10f3c7bb4f6c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 17 Feb 2013 16:50:44 +0000 Subject: Tidied new command output, ordered features --- src/ui/windows.c | 16 ++++++++-------- src/xmpp/capabilities.c | 7 ++++--- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/ui/windows.c b/src/ui/windows.c index 71aa1223..aecba904 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -1211,7 +1211,7 @@ cons_show_caps(const char * const contact, Resource *resource) // show identity if ((caps->category != NULL) || (caps->type != NULL) || (caps->name != NULL)) { _win_show_time(win, '-'); - wprintw(win, " Identity: "); + wprintw(win, "Identity: "); if (caps->name != NULL) { wprintw(win, "%s", caps->name); if ((caps->category != NULL) || (caps->type != NULL)) { @@ -1231,7 +1231,7 @@ cons_show_caps(const char * const contact, Resource *resource) } if (caps->software != NULL) { _win_show_time(win, '-'); - wprintw(win, " Software: %s", caps->software); + wprintw(win, "Software: %s", caps->software); } if (caps->software_version != NULL) { wprintw(win, ", %s", caps->software_version); @@ -1241,7 +1241,7 @@ cons_show_caps(const char * const contact, Resource *resource) } if (caps->os != NULL) { _win_show_time(win, '-'); - wprintw(win, " OS: %s", caps->os); + wprintw(win, "OS: %s", caps->os); } if (caps->os_version != NULL) { wprintw(win, ", %s", caps->os_version); @@ -1252,11 +1252,11 @@ cons_show_caps(const char * const contact, Resource *resource) if (caps->features != NULL) { _win_show_time(win, '-'); - wprintw(win, " Features:\n"); + wprintw(win, "Features:\n"); GSList *feature = caps->features; while (feature != NULL) { _win_show_time(win, '-'); - wprintw(win, " %s\n", feature->data); + wprintw(win, " %s\n", feature->data); feature = g_slist_next(feature); } } @@ -1283,13 +1283,13 @@ cons_show_software_version(const char * const jid, const char * const presence, wprintw(console->win, ":\n"); } if (name != NULL) { - cons_show(" Name : %s", name); + cons_show("Name : %s", name); } if (version != NULL) { - cons_show(" Version : %s", version); + cons_show("Version : %s", version); } if (os != NULL) { - cons_show(" OS : %s", os); + cons_show("OS : %s", os); } } diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c index f127b75c..8deacfc4 100644 --- a/src/xmpp/capabilities.c +++ b/src/xmpp/capabilities.c @@ -267,11 +267,12 @@ caps_create_query_response_stanza(xmpp_ctx_t * const ctx) xmpp_stanza_set_attribute(feature_ping, STANZA_ATTR_VAR, STANZA_NS_PING); xmpp_stanza_add_child(query, identity); - xmpp_stanza_add_child(query, feature_muc); - xmpp_stanza_add_child(query, feature_discoinfo); + xmpp_stanza_add_child(query, feature_caps); - xmpp_stanza_add_child(query, feature_version); xmpp_stanza_add_child(query, feature_chatstates); + xmpp_stanza_add_child(query, feature_discoinfo); + xmpp_stanza_add_child(query, feature_muc); + xmpp_stanza_add_child(query, feature_version); xmpp_stanza_add_child(query, feature_ping); xmpp_stanza_release(identity); -- cgit 1.4.1-2-gfad0