# HG changeset patch # User Waqas Hussain # Date 1239053569 -18000 # Node ID b021403c5d80fbc85786547cc7ee9ba0a5e67b82 # Parent d2692d427496f1180b77333087aa5a0c5291ca50 Fixed: Send correct error reply for IQs directed at unavailable resources diff -r d2692d427496 -r b021403c5d80 core/stanza_router.lua --- a/core/stanza_router.lua Tue Apr 07 02:24:37 2009 +0500 +++ b/core/stanza_router.lua Tue Apr 07 02:32:49 2009 +0500 @@ -244,8 +244,8 @@ -- 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...