Changeset

3589:1792610e169e

MUC: Return true from the stanza handler to suppress error responses.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 10 Nov 2010 05:31:19 +0500
parents 3588:1e570ed17147
children 3590:dcc5f3402f5b
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);