plugins/pubsub.lua@5cb658e37a37
plugins/pubsub.lua
Thu, 07 Apr 2011 02:20:28 +0200
- author
- Kim Alvefur <zash@zash.se>
- date
- Thu, 07 Apr 2011 02:20:28 +0200
- changeset 80
- 5cb658e37a37
- parent 68
-
f388a8a57d1d
- permissions
- -rw-r--r--
pubsub2room: Access to attributes in templates
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