Software /
code /
prosody-modules
Changeset
141:b42a88eba9ba
mod_sift: Don't disallow stanzas to bare JIDs when sifting is not in force for any resources.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 06 Mar 2010 22:30:51 +0500 |
parents | 140:9a632cf13f51 |
children | 142:f37de7e2ad14 |
files | mod_sift/mod_sift.lua |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_sift/mod_sift.lua Sat Mar 06 22:23:25 2010 +0500 +++ b/mod_sift/mod_sift.lua Sat Mar 06 22:30:51 2010 +0500 @@ -139,9 +139,11 @@ allowed = true; end end + else + allowed = true; end end - if not allowed then + if user and not allowed then -- element not allowed; sending back generic error origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); -- FIXME maybe send to offline storage @@ -181,9 +183,11 @@ allowed = true; end end + else + allowed = true; end end - if not allowed then + if user and not allowed then -- element not allowed; sending back generic error --origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); return true;