--- 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