# HG changeset patch # User Kim Alvefur # Date 1314183519 -7200 # Node ID b7f628541981908afdc7d6d5a3339b94727f8de1 # Parent 5fac50efb1836661a3ab007e61c4640fbccec87f plugins.pubsub2room: Fix to use pubsub on stream instead of bot diff -r 5fac50efb183 -r b7f628541981 plugins/pubsub2room.lua --- 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