# HG changeset patch # User Kim Alvefur # Date 1299879021 -3600 # Node ID f388a8a57d1d3d458843bf9362ea237f4b7b6bef # Parent 12e2c702eddcbdd8ff2c5901aa92d1c227a5d38d plugins.pubsub: Re-send verse pubsub events on the bot diff -r 12e2c702eddc -r f388a8a57d1d plugins/pubsub.lua --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/pubsub.lua Fri Mar 11 22:30:21 2011 +0100 @@ -0,0 +1,9 @@ +function riddim.plugins.pubsub(bot) + bot.stream:add_plugin("pubsub"); + bot.pubsub = bot.stream.pubsub; + + -- Maybe pubsub/event/ns/element or something? + bot.stream:hook("pubsub/event", function(event) + return bot:event("pubsub/event", event); + end); +end