diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/componentmanager.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 1da8cd6f..6727c82e 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -14,6 +14,7 @@ local configmanager = require "core.configmanager"; local eventmanager = require "core.eventmanager"; local modulemanager = require "core.modulemanager"; local jid_split = require "util.jid".split; +local st = require "util.stanza"; local hosts = hosts; local pairs, type, tostring = pairs, type, tostring; @@ -35,7 +36,10 @@ end); module "componentmanager" local function default_component_handler(origin, stanza) - origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); + log("warn", "Stanza being handled by default component, bouncing error"); + if stanza.attr.type ~= "error" then + origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); + end end |