MUC: Return true from the stanza handler to suppress error responses.

Wed, 10 Nov 2010 05:31:19 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 10 Nov 2010 05:31:19 +0500
changeset 3589
1792610e169e
parent 3588
1e570ed17147
child 3590
dcc5f3402f5b

MUC: Return true from the stanza handler to suppress error responses.

plugins/muc/mod_muc.lua file | annotate | diff | comparison | revisions
--- a/plugins/muc/mod_muc.lua	Wed Nov 10 05:30:46 2010 +0500
+++ b/plugins/muc/mod_muc.lua	Wed Nov 10 05:31:19 2010 +0500
@@ -147,10 +147,11 @@
 				origin.send(st.error_reply(stanza, "cancel", "not-allowed"));
 			end
 		else --[[not for us?]] end
-		return;
+		return true;
 	end
 	-- to the main muc domain
 	handle_to_domain(origin, stanza);
+	return true;
 end
 module:hook("iq/bare", stanza_handler);
 module:hook("message/bare", stanza_handler);

mercurial