plugins/pubsub.lua

Tue, 12 Jul 2011 15:39:25 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 12 Jul 2011 15:39:25 +0200
changeset 82
ec22d6deb6c0
parent 68
f388a8a57d1d
permissions
-rw-r--r--

plugins.invited: Move xmlns-es to variables.

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