plugins/pubsub.lua

changeset 264
ffb27e62a11e
parent 263
598e9f93de78
child 265
2a2326a8f9e8
--- a/plugins/pubsub.lua	Sat Dec 10 15:21:09 2011 +0100
+++ b/plugins/pubsub.lua	Sat Dec 10 15:45:55 2011 +0100
@@ -62,7 +62,7 @@
 	local st = verse.iq{ type = iq_type or "get", to = to }
 		:tag("pubsub", { xmlns = ns or xmlns_pubsub }) -- ns would be ..#owner
 			if op then st:tag(op, { node = node, jid = jid }); end
-				if id then st:tag("item", { id = item_id ~= true and item_id or nil }); end
+				if item_id then st:tag("item", { id = item_id ~= true and item_id or nil }); end
 	return st;
 end
 

mercurial