plugins.pubsub2room: Use new PubSub API

Mon, 11 Feb 2013 18:30:03 +0100

author
Kim Alvefur <zash@zash.se>
date
Mon, 11 Feb 2013 18:30:03 +0100
changeset 99
072509afc701
parent 98
1f365028aae1
child 100
f90ead53573a

plugins.pubsub2room: Use new PubSub API

plugins/pubsub2room.lua file | annotate | diff | comparison | revisions
--- a/plugins/pubsub2room.lua	Mon Feb 11 18:29:06 2013 +0100
+++ b/plugins/pubsub2room.lua	Mon Feb 11 18:30:03 2013 +0100
@@ -72,7 +72,7 @@
 		local jid = bare_jid(bot.stream.jid);
 		for hostnode in pairs(config) do
 			local host, node = hostnode:match("^([^#]+)#(.*)");
-			bot.stream.pubsub:subscribe(host, node, jid, print);
+			bot.stream.pubsub(host, node):subscribe(jid, print);
 		end
 	end);
 end

mercurial