plugins/mod_pubsub.lua

changeset 3918
f30c5bad29b8
parent 3916
ffe5a0d36f57
child 3919
e288372dd19f
--- 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

mercurial