aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_iq.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-22 17:08:09 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-22 17:08:09 +0100
commitacdcd2b37388a3596c25c2d4c6bc802094a58dec (patch)
tree2593981ba2580f7c824501dc13223411d34fab49 /plugins/mod_iq.lua
parent546db4be6d3e112193599d4bb8cc062003d3cd7b (diff)
parent193ea4ef3030ab24da31f86031f6ea8386331099 (diff)
downloadprosody-acdcd2b37388a3596c25c2d4c6bc802094a58dec.tar.gz
prosody-acdcd2b37388a3596c25c2d4c6bc802094a58dec.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_iq.lua')
-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