plugins/pubsub2room.lua

changeset 99
072509afc701
parent 88
b7f628541981
child 104
8202cdfb99b4
--- 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