Software /
code /
prosody
Comparison
core/modulemanager.lua @ 1173:09a4cd461673
modulemanager: Don't close the stream on unhandled stream:features
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 16 May 2009 05:07:51 +0500 |
parent | 1167:5620ea24be94 |
child | 1174:f7b6d5839092 |
comparison
equal
deleted
inserted
replaced
1172:490ff24d0ac5 | 1173:09a4cd461673 |
---|---|
229 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it | 229 log("debug", "Unhandled %s stanza: %s; xmlns=%s", origin.type, stanza.name, xmlns); -- we didn't handle it |
230 if stanza.attr.xmlns == "jabber:client" then | 230 if stanza.attr.xmlns == "jabber:client" then |
231 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then | 231 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then |
232 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); | 232 origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); |
233 end | 233 end |
234 else | 234 elseif not(name == "features" and xmlns == "http://etherx.jabber.org/streams") then -- FIXME remove check once we handle S2S features |
235 origin:close("unsupported-stanza-type"); | 235 origin:close("unsupported-stanza-type"); |
236 end | 236 end |
237 end | 237 end |
238 end | 238 end |
239 | 239 |