# HG changeset patch # User Kim Alvefur # Date 1360603803 -3600 # Node ID 072509afc7017f9095345ff30b83c962a7101981 # Parent 1f365028aae18be19a18a7c5c325fac4d8438bed plugins.pubsub2room: Use new PubSub API diff -r 1f365028aae1 -r 072509afc701 plugins/pubsub2room.lua --- 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