Only print discovered features if it is a feature
[cascardo/chat.git] / disco.c
diff --git a/disco.c b/disco.c
index de1b4bc..de9a55a 100644 (file)
--- a/disco.c
+++ b/disco.c
@@ -43,7 +43,8 @@ hc_xmpp_recv_disco (hc_xmpp_t *xmpp, iks *disco)
       iks *c;
       for (c = iks_child (iks_child (disco)); c != NULL; c = iks_next (c))
         {
-          fprintf (stdout, "%s\n", iks_find_attrib (c, "var"));
+          if (!iks_strcmp (iks_name (c), "feature"))
+            fprintf (stdout, "%s\n", iks_find_attrib (c, "var"));
         }
     }
 }