Software /
code /
prosody
Comparison
core/componentmanager.lua @ 1773:f47aa1d336b5
ComponentManager: Fixed: Default handler sent error replies on result stanzas.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 11 Sep 2009 16:20:49 +0500 |
parent | 1772:c0ba9cd6ee63 |
child | 1774:53bd9c9f3103 |
comparison
equal
deleted
inserted
replaced
1772:c0ba9cd6ee63 | 1773:f47aa1d336b5 |
---|---|
27 | 27 |
28 module "componentmanager" | 28 module "componentmanager" |
29 | 29 |
30 local function default_component_handler(origin, stanza) | 30 local function default_component_handler(origin, stanza) |
31 log("warn", "Stanza being handled by default component, bouncing error"); | 31 log("warn", "Stanza being handled by default component, bouncing error"); |
32 if stanza.attr.type ~= "error" then | 32 if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then |
33 core_route_stanza(nil, st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); | 33 core_route_stanza(nil, st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); |
34 end | 34 end |
35 end | 35 end |
36 | 36 |
37 local components_loaded_once; | 37 local components_loaded_once; |