From 3e304fcdabe4753960b394108543819e52dc8aec Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 23 Feb 2010 04:14:48 +0000 Subject: [PATCH] * When an XMPP client closes its stream, close the server's stream and log out the session. --- citadel/modules/xmpp/serv_xmpp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/citadel/modules/xmpp/serv_xmpp.c b/citadel/modules/xmpp/serv_xmpp.c index c239ee56b..0ccf6861e 100644 --- a/citadel/modules/xmpp/serv_xmpp.c +++ b/citadel/modules/xmpp/serv_xmpp.c @@ -390,6 +390,12 @@ 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"); + cprintf("\n"); + CC->kill_me = 1; + } + else { CtdlLogPrintf(CTDL_DEBUG, "Ignoring unknown tag <%s>\n", el); } -- 2.30.2