# HG changeset patch # User Matthew Wild <mwild1@gmail.com> # Date 1292905138 0 # Node ID f30c5bad29b80cf9b7bd4ca5abff90dee6c65374 # Parent 263a133bdf5a4744990ec54dd046d2957668d8cc mod_pubsub: Skip false features in feature_map diff -r 263a133bdf5a -r f30c5bad29b8 plugins/mod_pubsub.lua --- a/plugins/mod_pubsub.lua Tue Dec 21 04:17:24 2010 +0000 +++ b/plugins/mod_pubsub.lua Tue Dec 21 04:18:58 2010 +0000 @@ -193,7 +193,9 @@ 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