]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/jabber/xmpp_query_namespace.c
Require <bind> tag for bind attempts.
[citadel.git] / citadel / modules / jabber / xmpp_query_namespace.c
index 3d552e056482db82a34df28bd33f2852caf6c950..e89fb8cfef118f83c94a216cc1914776eaf4d47a 100644 (file)
@@ -118,6 +118,13 @@ void xmpp_query_namespace(char *iq_id, char *iq_from, char *iq_to, char *query_x
                jabber_iq_roster_query();
        }
 
+       else if (!strcasecmp(query_xmlns, "jabber:iq:auth:query")) {
+               cprintf("<query xmlns=\"jabber:iq:auth\">"
+                       "<username/><password/><resource/>"
+                       "</query>"
+               );
+       }
+
        /*
         * End of query result.  If we didn't hit any known namespaces then we will
         * have simply delivered an empty result stanza, which should be ok.