Diff

plugins/mod_pubsub.lua @ 3915:e24fcbb01fb6

mod_pubsub: Iterate over disco features in correct table
author Matthew Wild <mwild1@gmail.com>
date Tue, 21 Dec 2010 04:15:29 +0000
parent 3914:f10282c2e410
child 3916:ffe5a0d36f57
line wrap: on
line diff
--- 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