# HG changeset patch # User Matthew Wild # Date 1292904929 0 # Node ID e24fcbb01fb6ce147b5c5398f403c37db0396880 # Parent f10282c2e4106b0d64decd382a4a7f87e6a94122 mod_pubsub: Iterate over disco features in correct table diff -r f10282c2e410 -r e24fcbb01fb6 plugins/mod_pubsub.lua --- a/plugins/mod_pubsub.lua Tue Dec 21 04:06:36 2010 +0000 +++ b/plugins/mod_pubsub.lua Tue Dec 21 04:15:29 2010 +0000 @@ -192,7 +192,7 @@ 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