Diff

plugins/mod_component.lua @ 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
parent 4301:1484ac561b28
child 4464:b0574fc78a0a
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