diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:18:58 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:18:58 +0000 |
commit | 7aa49716a289009be1ecf69c1d74ec8f70421bd3 (patch) | |
tree | d086035338735d130dec842ec7b4b558445d1525 /plugins/mod_pubsub.lua | |
parent | 2d7d846152a0ffe3f4977653ac913f5372cd7bbe (diff) | |
download | prosody-7aa49716a289009be1ecf69c1d74ec8f70421bd3.tar.gz prosody-7aa49716a289009be1ecf69c1d74ec8f70421bd3.zip |
mod_pubsub: Skip false features in feature_map
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r-- | plugins/mod_pubsub.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 |