aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-26 21:46:05 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-26 21:46:05 +0500
commit7d0a2037b30eea26ac86eff30494246ad6d6edff (patch)
tree7fb1ed825d25ffadc1118e79fdec88b57cc75d86
parent2694e2320acdda1cbdcea06f97432a41e9a2c8ba (diff)
downloadprosody-7d0a2037b30eea26ac86eff30494246ad6d6edff.tar.gz
prosody-7d0a2037b30eea26ac86eff30494246ad6d6edff.zip
Return an empty set intead of an error when no disco items are available for a host
-rw-r--r--core/discomanager.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/discomanager.lua b/core/discomanager.lua
index 21080635..fe63f972 100644
--- a/core/discomanager.lua
+++ b/core/discomanager.lua
@@ -41,6 +41,11 @@ do
return true;
end
end);
+ helper:addDiscoItemsHandler("*host", function(reply, to, from, node)
+ if hosts[to] and hosts[to].type == "local" then
+ return true;
+ end
+ end);
end
module "discomanager"