diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 05:31:19 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 05:31:19 +0500 |
commit | a74f2b1a9ebab175961440e1539435b92f803803 (patch) | |
tree | b4f0b0e3d676f807274c3709fa08905fc440e518 /plugins/muc | |
parent | eba95643c94d802c7c6f8c6615f7afd741757173 (diff) | |
download | prosody-a74f2b1a9ebab175961440e1539435b92f803803.tar.gz prosody-a74f2b1a9ebab175961440e1539435b92f803803.zip |
MUC: Return true from the stanza handler to suppress error responses.
Diffstat (limited to 'plugins/muc')
-rw-r--r-- | plugins/muc/mod_muc.lua | 3 |
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); |