plugins/pubsub.lua@ce687757ce3d
plugins/pubsub.lua
Wed, 20 Jul 2011 01:11:11 +0200
- author
- Kim Alvefur <zash@zash.se>
- date
- Wed, 20 Jul 2011 01:11:11 +0200
- changeset 84
- ce687757ce3d
- parent 68
-
f388a8a57d1d
- permissions
- -rw-r--r--
plugins.xeps: Check for exact matches on shortnames.
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