mod_component: Return true from stanza handler to indicate that we actually did handle the stanza.

Fri, 12 Nov 2010 22:39:37 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Fri, 12 Nov 2010 22:39:37 +0500
changeset 3615
c72d24c2d97b
parent 3614
8b436cc88c0e
child 3616
95ae7af2c82b

mod_component: Return true from stanza handler to indicate that we actually did handle the stanza.

plugins/mod_component.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_component.lua	Fri Nov 12 11:51:50 2010 +0000
+++ b/plugins/mod_component.lua	Fri Nov 12 22:39:37 2010 +0500
@@ -41,6 +41,7 @@
 			event.origin.send(st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable"));
 		end
 	end
+	return true;
 end
 
 module:hook("iq/bare", handle_stanza);

mercurial