diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:15:29 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-12-21 04:15:29 +0000 |
commit | 69cee3aee4e9c00004b1e97ec4c6ba650c80fe9c (patch) | |
tree | 78f65c203dd50e29e97f3d1dfe09d8dea5df0ecf /plugins/mod_pubsub.lua | |
parent | 15671f1190edf08cc7cf4b0fb13a78b24ddd3564 (diff) | |
download | prosody-69cee3aee4e9c00004b1e97ec4c6ba650c80fe9c.tar.gz prosody-69cee3aee4e9c00004b1e97ec4c6ba650c80fe9c.zip |
mod_pubsub: Iterate over disco features in correct table
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r-- | plugins/mod_pubsub.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index efcbd769..f26178b9 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -192,7 +192,7 @@ local feature_map = { 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 |