plugins/pubsub.lua@1b934a878e84
plugins/pubsub.lua
Fri, 25 Mar 2011 19:20:14 +0100
- author
- Florian Zeitz <florob@babelmonkeys.de>
- date
- Fri, 25 Mar 2011 19:20:14 +0100
- changeset 75
- 1b934a878e84
- parent 68
-
f388a8a57d1d
- permissions
- -rw-r--r--
plugins.xeps: Fix pattern used to determine whether the user requested an example
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