Changeset

4323:53f3c3001499

mod_component: Clearer log message when bouncing a stanza from a component that is not connected (thanks MK)
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 Jun 2011 14:04:56 +0100
parents 4322:aff627b1ce95
children 4324:5e7cba840409
files plugins/mod_component.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_component.lua	Wed Jun 15 23:44:18 2011 +0200
+++ b/plugins/mod_component.lua	Sat Jun 18 14:04:56 2011 +0100
@@ -35,7 +35,7 @@
 		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