plugins.pubsub: Fix missing <item/> when publishing.

Sat, 10 Dec 2011 15:21:09 +0100

author
Kim Alvefur <zash@zash.se>
date
Sat, 10 Dec 2011 15:21:09 +0100
changeset 263
598e9f93de78
parent 262
f47afb171e6e
child 264
ffb27e62a11e

plugins.pubsub: Fix missing <item/> when publishing.

plugins/pubsub.lua file | annotate | diff | comparison | revisions
--- a/plugins/pubsub.lua	Wed Dec 07 02:46:00 2011 +0000
+++ b/plugins/pubsub.lua	Sat Dec 10 15:21:09 2011 +0100
@@ -181,7 +181,7 @@
 	if options ~= nil then
 		error("Node configuration is not implemented yet.");
 	end
-	self.stream:send_iq(pubsub_iq("set", self.service, nil, "publish", self.node, nil, id)
+	self.stream:send_iq(pubsub_iq("set", self.service, nil, "publish", self.node, nil, id or true)
 	:add_child(node)
 	, callback);
 end

mercurial