Diff

plugins/pubsub.lua @ 263:598e9f93de78

plugins.pubsub: Fix missing <item/> when publishing.
author Kim Alvefur <zash@zash.se>
date Sat, 10 Dec 2011 15:21:09 +0100
parent 250:a5ac643a7fd6
child 264:ffb27e62a11e
line wrap: on
line diff
--- 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