mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-25 21:16:21 +00:00
Add newline before disco output
This commit is contained in:
@@ -1328,6 +1328,7 @@ cons_show_disco_info(const char *jid, GSList *identities, GSList *features)
|
|||||||
{
|
{
|
||||||
if (((identities != NULL) && (g_slist_length(identities) > 0)) ||
|
if (((identities != NULL) && (g_slist_length(identities) > 0)) ||
|
||||||
((features != NULL) && (g_slist_length(features) > 0))) {
|
((features != NULL) && (g_slist_length(features) > 0))) {
|
||||||
|
cons_show("");
|
||||||
cons_show("Service disovery info for %s", jid);
|
cons_show("Service disovery info for %s", jid);
|
||||||
|
|
||||||
if (identities != NULL) {
|
if (identities != NULL) {
|
||||||
@@ -1366,6 +1367,7 @@ void
|
|||||||
cons_show_disco_items(GSList *items, const char * const jid)
|
cons_show_disco_items(GSList *items, const char * const jid)
|
||||||
{
|
{
|
||||||
if ((items != NULL) && (g_slist_length(items) > 0)) {
|
if ((items != NULL) && (g_slist_length(items) > 0)) {
|
||||||
|
cons_show("");
|
||||||
cons_show("Service discovery items for %s:", jid);
|
cons_show("Service discovery items for %s:", jid);
|
||||||
while (items != NULL) {
|
while (items != NULL) {
|
||||||
DiscoItem *item = items->data;
|
DiscoItem *item = items->data;
|
||||||
@@ -1378,6 +1380,7 @@ cons_show_disco_items(GSList *items, const char * const jid)
|
|||||||
items = g_slist_next(items);
|
items = g_slist_next(items);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
cons_show("");
|
||||||
cons_show("No service discovery items for %s", jid);
|
cons_show("No service discovery items for %s", jid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user