From 7aa49716a289009be1ecf69c1d74ec8f70421bd3 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 21 Dec 2010 04:18:58 +0000 Subject: mod_pubsub: Skip false features in feature_map --- plugins/mod_pubsub.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index e0acfb65..e2b0f2fd 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -193,7 +193,9 @@ 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(features) do - disco:tag("feature", { var = xmlns_pubsub.."#"..feature }):up(); + if feature then + disco:tag("feature", { var = xmlns_pubsub.."#"..feature }):up(); + end end end end -- cgit v1.2.3