From 9982558804de3976a3d5d9e12ab5215503420e0f Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Tue, 7 Apr 2009 02:32:49 +0500 Subject: Fixed: Send correct error reply for IQs directed at unavailable resources --- core/stanza_router.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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... -- cgit v1.2.3