aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-08-18 12:52:44 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-08-18 12:52:44 +0500
commited8982a1e940671b474880f7e33e46516dadd423 (patch)
tree476c8764d1e3f383ac1421d9e72c5a1acf3aae5c /core
parentf56e892bf8b953761db74e50628aa66c826193b5 (diff)
downloadprosody-ed8982a1e940671b474880f7e33e46516dadd423.tar.gz
prosody-ed8982a1e940671b474880f7e33e46516dadd423.zip
modulemanager: Removed legacy disco#items hook
Diffstat (limited to 'core')
-rw-r--r--core/modulemanager.lua39
1 files changed, 0 insertions, 39 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua
index bb9ab8a7..b756b327 100644
--- a/core/modulemanager.lua
+++ b/core/modulemanager.lua
@@ -328,45 +328,6 @@ function api:add_iq_handler(origin_type, xmlns, handler)
self:add_handler(origin_type, "iq", xmlns, handler);
end
-addDiscoInfoHandler("*host", function(reply, to, from, node)
- if #node == 0 then
- local done = {};
- for module, identities in pairs(identities_table:get(to) or NULL) do -- for each module
- for identity, attr in pairs(identities) do
- if not done[identity] then
- reply:tag("identity", attr):up(); -- TODO cache
- done[identity] = true;
- end
- end
- end
- for module, identities in pairs(identities_table:get("*") or NULL) do -- for each module
- for identity, attr in pairs(identities) do
- if not done[identity] then
- reply:tag("identity", attr):up(); -- TODO cache
- done[identity] = true;
- end
- end
- end
- for module, features in pairs(features_table:get(to) or NULL) do -- for each module
- for feature in pairs(features) do
- if not done[feature] then
- reply:tag("feature", {var = feature}):up(); -- TODO cache
- done[feature] = true;
- end
- end
- end
- for module, features in pairs(features_table:get("*") or NULL) do -- for each module
- for feature in pairs(features) do
- if not done[feature] then
- reply:tag("feature", {var = feature}):up(); -- TODO cache
- done[feature] = true;
- end
- end
- end
- return next(done) ~= nil;
- end
-end);
-
function api:add_feature(xmlns)
self:add_item("feature", xmlns);
end