plugins/pubsub2room.lua

changeset 104
8202cdfb99b4
parent 99
072509afc701
child 138
7c95aba75a55
--- a/plugins/pubsub2room.lua	Sat May 25 21:46:21 2013 +0200
+++ b/plugins/pubsub2room.lua	Sat May 25 23:21:30 2013 +0200
@@ -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(host, node):subscribe(jid, print);
+			bot.stream.pubsub(host, node):subscribe(jid);
 		end
 	end);
 end

mercurial