plugins.pep: Use the new PubSub api.

Mon, 28 Nov 2011 17:16:04 +0100

author
Kim Alvefur <zash@zash.se>
date
Mon, 28 Nov 2011 17:16:04 +0100
changeset 254
616cc6a5fd30
parent 253
aa55793c523e
child 255
be126fe7c4e7

plugins.pep: Use the new PubSub api.

plugins/pep.lua file | annotate | diff | comparison | revisions
--- a/plugins/pep.lua	Mon Nov 28 17:15:41 2011 +0100
+++ b/plugins/pep.lua	Mon Nov 28 17:16:04 2011 +0100
@@ -27,6 +27,6 @@
 	end
 	
 	function stream:publish_pep(item, node)
-		return stream.pubsub:publish(nil, node or item.attr.xmlns, nil, item)
+		return stream.pubsub:service(nil):node(node or item.attr.xmlns):publish(nil, nil, item)
 	end
 end

mercurial