plugins/pubsub.lua@7ec6df0e0ed0
plugins/pubsub.lua
Wed, 20 Jul 2011 01:16:34 +0200
- author
- Kim Alvefur <zash@zash.se>
- date
- Wed, 20 Jul 2011 01:16:34 +0200
- changeset 85
- 7ec6df0e0ed0
- parent 68
-
f388a8a57d1d
- permissions
- -rw-r--r--
plugins.xeps: Fix previous commit (it was wrong side of the loopy loops)
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