diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-22 17:01:52 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-22 17:01:52 +0100 |
commit | 94c9ed4e158fe9b24de77cde5da3a9124f7ffc38 (patch) | |
tree | a46464bd2dd025a39b33fbeebc994c5612c664b9 /plugins/mod_iq.lua | |
parent | 5efb7f0824efc81a06c0d9f9d139bc41637d9fd7 (diff) | |
download | prosody-94c9ed4e158fe9b24de77cde5da3a9124f7ffc38.tar.gz prosody-94c9ed4e158fe9b24de77cde5da3a9124f7ffc38.zip |
mod_iq: Don't treat an iq as handled if session.send() returns false
Diffstat (limited to 'plugins/mod_iq.lua')
-rw-r--r-- | plugins/mod_iq.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/mod_iq.lua b/plugins/mod_iq.lua index 6412ad11..8044a533 100644 --- a/plugins/mod_iq.lua +++ b/plugins/mod_iq.lua @@ -17,10 +17,7 @@ if module:get_host_type() == "local" then local origin, stanza = data.origin, data.stanza; local session = full_sessions[stanza.attr.to]; - if session then - -- TODO fire post processing event - session.send(stanza); - else -- resource not online + if not (session and session.send(stanza)) then if stanza.attr.type == "get" or stanza.attr.type == "set" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); end |