plugins/pubsub.lua

Fri, 11 Mar 2011 22:30:21 +0100

author
Kim Alvefur <zash@zash.se>
date
Fri, 11 Mar 2011 22:30:21 +0100
changeset 68
f388a8a57d1d
permissions
-rw-r--r--

plugins.pubsub: Re-send verse pubsub events on the bot

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

mercurial