aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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...