modulemanager: Add module:set_global() as a cleaner way for a module to declare itsel...
[prosody.git] / core / discomanager.lua
index 16bf222757a6d55a11d9d5d0b9593714c81a4894..fe63f972cc0453eec3193a1970d41737a31f83ce 100644 (file)
@@ -1,4 +1,4 @@
--- Prosody IM v0.1
+-- Prosody IM v0.2
 -- Copyright (C) 2008 Matthew Wild
 -- Copyright (C) 2008 Waqas Hussain
 -- 
@@ -41,6 +41,11 @@ do
                        return true;\r
                end\r
        end);\r
+       helper:addDiscoItemsHandler("*host", function(reply, to, from, node)
+               if hosts[to] and hosts[to].type == "local" then
+                       return true;
+               end
+       end);
 end\r
 \r
 module "discomanager"\r