Mon, 11 Feb 2013 18:30:03 +0100
plugins.pubsub2room: Use new PubSub API
plugins/pubsub2room.lua | file | annotate | diff | comparison | revisions |
--- 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