Comparison

core/stanza_router.lua @ 6403:166d1bd8fc38

core.stanza_router, mod_s2s: Move handling of S2S features to mod_s2s from stanza_router
author Kim Alvefur <zash@zash.se>
date Tue, 09 Sep 2014 15:05:46 +0200
parent 6402:b058486e6a79
child 6559:0ef7ca5276a1
comparison
equal deleted inserted replaced
6402:b058486e6a79 6403:166d1bd8fc38
44 end 44 end
45 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin_type, name, xmlns); 45 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin_type, name, xmlns);
46 if origin.send then 46 if origin.send then
47 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); 47 origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
48 end 48 end
49 elseif not((name == "features" or name == "error") and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features 49 else
50 log("warn", "Unhandled %s stream element or stanza: %s; xmlns=%s: %s", origin_type, name, xmlns, tostring(stanza)); -- we didn't handle it 50 log("warn", "Unhandled %s stream element or stanza: %s; xmlns=%s: %s", origin_type, name, xmlns, tostring(stanza)); -- we didn't handle it
51 origin:close("unsupported-stanza-type"); 51 origin:close("unsupported-stanza-type");
52 end 52 end
53 end 53 end
54 54