aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 05:31:19 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 05:31:19 +0500
commita74f2b1a9ebab175961440e1539435b92f803803 (patch)
treeb4f0b0e3d676f807274c3709fa08905fc440e518
parenteba95643c94d802c7c6f8c6615f7afd741757173 (diff)
downloadprosody-a74f2b1a9ebab175961440e1539435b92f803803.tar.gz
prosody-a74f2b1a9ebab175961440e1539435b92f803803.zip
MUC: Return true from the stanza handler to suppress error responses.
-rw-r--r--plugins/muc/mod_muc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 4f35b985..60602050 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -147,10 +147,11 @@ function stanza_handler(event)
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);