Changeset

263:598e9f93de78

plugins.pubsub: Fix missing <item/> when publishing.
author Kim Alvefur <zash@zash.se>
date Sat, 10 Dec 2011 15:21:09 +0100
parents 262:f47afb171e6e
children 264:ffb27e62a11e
files plugins/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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