aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-22 17:01:52 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-22 17:01:52 +0100
commit1135a220df42900779c5cdfbd6c2511d4e7dcc4c (patch)
treea46464bd2dd025a39b33fbeebc994c5612c664b9
parent2ab34e601926f595fa7bfb06e9fbf99ea0795525 (diff)
downloadprosody-1135a220df42900779c5cdfbd6c2511d4e7dcc4c.tar.gz
prosody-1135a220df42900779c5cdfbd6c2511d4e7dcc4c.zip
mod_iq: Don't treat an iq as handled if session.send() returns false
-rw-r--r--plugins/mod_iq.lua5
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