Software /
code /
prosody
Changeset
4966:073eff2853a1
mod_iq: Don't treat an iq as handled if session.send() returns false
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Jul 2012 17:01:52 +0100 |
parents | 4965:c1685f0441b7 |
children | 4967:b7bcf088e723 |
files | plugins/mod_iq.lua |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_iq.lua Sun Jul 22 16:59:55 2012 +0100 +++ b/plugins/mod_iq.lua Sun Jul 22 17:01:52 2012 +0100 @@ -17,10 +17,7 @@ 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