plugins/pubsub2room.lua

changeset 88
b7f628541981
parent 86
2fa4d58349c8
child 99
072509afc701
--- a/plugins/pubsub2room.lua	Sun Aug 21 02:50:20 2011 +0200
+++ b/plugins/pubsub2room.lua	Wed Aug 24 12:58:39 2011 +0200
@@ -72,7 +72,7 @@
 		local jid = bare_jid(bot.stream.jid);
 		for hostnode in pairs(config) do
 			local host, node = hostnode:match("^([^#]+)#(.*)");
-			bot.pubsub:subscribe(host, node, jid, print);
+			bot.stream.pubsub:subscribe(host, node, jid, print);
 		end
 	end);
 end

mercurial