plugins/mod_pubsub.lua

changeset 3915
e24fcbb01fb6
parent 3914
f10282c2e410
child 3916
ffe5a0d36f57
--- 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

mercurial