# HG changeset patch # User Waqas Hussain # Date 1236187421 -18000 # Node ID 72a7eeaa9e585cb188e754e6fbc5c404f10d292a # Parent 0bababc930ddd9e64ed6a40826c7d9cd19f426bd Let global modules add disco features for all hosts diff -r 0bababc930dd -r 72a7eeaa9e58 core/modulemanager.lua --- a/core/modulemanager.lua Wed Mar 04 22:22:40 2009 +0500 +++ b/core/modulemanager.lua Wed Mar 04 22:23:41 2009 +0500 @@ -300,6 +300,14 @@ 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);