diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-12-26 21:46:05 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-12-26 21:46:05 +0500 |
commit | 7d0a2037b30eea26ac86eff30494246ad6d6edff (patch) | |
tree | 7fb1ed825d25ffadc1118e79fdec88b57cc75d86 /core | |
parent | 2694e2320acdda1cbdcea06f97432a41e9a2c8ba (diff) | |
download | prosody-7d0a2037b30eea26ac86eff30494246ad6d6edff.tar.gz prosody-7d0a2037b30eea26ac86eff30494246ad6d6edff.zip |
Return an empty set intead of an error when no disco items are available for a host
Diffstat (limited to 'core')
-rw-r--r-- | core/discomanager.lua | 5 |
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"
|