-void xmpp_query_namespace(char *iq_id, char *iq_from, char *iq_to, char *query_xmlns) {
+void xmpp_query_namespace(char *iq_id, char *iq_from, char *iq_to, char *query_xmlns)
+{
+ int supported_namespace = 0;
+
+ /* We need to know before we begin the response whether this is a supported namespace, so
+ * unfortunately all supported namespaces need to be defined here *and* down below where
+ * they are handled.
+ */
+ if (
+ (!strcasecmp(query_xmlns, "jabber:iq:roster:query"))
+ && (!strcasecmp(query_xmlns, "jabber:iq:auth:query"))
+ ) {
+ supported_namespace = 1;
+ }