From ba19cdbf9a43e87deef9db91f6bc3b27d9143870 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 18 Jun 2011 14:04:56 +0100 Subject: mod_component: Clearer log message when bouncing a stanza from a component that is not connected (thanks MK) --- plugins/mod_component.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_component.lua') diff --git a/plugins/mod_component.lua b/plugins/mod_component.lua index a70a7223..97c46a8c 100644 --- a/plugins/mod_component.lua +++ b/plugins/mod_component.lua @@ -35,7 +35,7 @@ local function handle_stanza(event) stanza.attr.xmlns = nil; send(stanza); else - log("warn", "Stanza being handled by default component; bouncing error for: %s", stanza:top_tag()); + log("warn", "Component not connected, bouncing error for: %s", stanza:top_tag()); if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then event.origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable")); end -- cgit v1.2.3