aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-04-07 02:32:49 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-04-07 02:32:49 +0500
commit9982558804de3976a3d5d9e12ab5215503420e0f (patch)
tree7f0f90fbe11fe64fa68844ee7bf23e1bed7664a3 /core
parent6951dc1cd237457187bac50480d8002db5c55e79 (diff)
downloadprosody-9982558804de3976a3d5d9e12ab5215503420e0f.tar.gz
prosody-9982558804de3976a3d5d9e12ab5215503420e0f.zip
Fixed: Send correct error reply for IQs directed at unavailable resources
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 4cff83e7..08224c8d 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -244,8 +244,8 @@ function core_route_stanza(origin, stanza)
-- TODO deal with storage errors
end
end
- else
- -- TODO send IQ error
+ elseif stanza.attr.type == "get" or stanza.attr.type == "set" then
+ origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
end
else
-- User + resource is online...