Sat, 10 Dec 2011 15:45:55 +0100
plugins.pubsub: Fix typo
plugins/pubsub.lua | file | annotate | diff | comparison | revisions |
--- 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