]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/xmpp/serv_xmpp.c
* Disable the XMPP-mortuary code. It's not ready for production yet.
[citadel.git] / citadel / modules / xmpp / serv_xmpp.c
index c239ee56b435991ba07dad990de16a731142829c..0daf9ac022886dd857636e87f26aa1d0bf5e6158 100644 (file)
@@ -390,6 +390,13 @@ void xmpp_xml_end(void *data, const char *supplied_el) {
                XMPP->ping_requested = 1;
        }
 
+       else if (!strcasecmp(el, "stream")) {
+               CtdlLogPrintf(CTDL_DEBUG, "XMPP client shut down their stream\n");
+               /* xmpp_massacre_roster(); FIXME put this back in when it's finished */
+               cprintf("</stream>\n");
+               CC->kill_me = 1;
+       }
+
        else {
                CtdlLogPrintf(CTDL_DEBUG, "Ignoring unknown tag <%s>\n", el);
        }