From 69cee3aee4e9c00004b1e97ec4c6ba650c80fe9c Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 21 Dec 2010 04:15:29 +0000 Subject: mod_pubsub: Iterate over disco features in correct table --- plugins/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_pubsub.lua') diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index efcbd769..f26178b9 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -192,7 +192,7 @@ local feature_map = { local function add_disco_features_from_service(disco, service) for method, features in pairs(feature_map) do if service[method] then - for _, feature in ipairs(feature_map) do + for _, feature in ipairs(features) do disco:tag("feature", { var = xmlns_pubsub.."#"..feature }):up(); end end -- cgit v1.2.3