plugins.pubsub2room: Fix to use pubsub on stream instead of bot

Wed, 24 Aug 2011 12:58:39 +0200

author
Kim Alvefur <zash@zash.se>
date
Wed, 24 Aug 2011 12:58:39 +0200
changeset 88
b7f628541981
parent 87
5fac50efb183
child 89
5a573f1d7592

plugins.pubsub2room: Fix to use pubsub on stream instead of bot

plugins/pubsub2room.lua file | annotate | diff | comparison | revisions
--- 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