plugins/pubsub2room.lua

changeset 86
2fa4d58349c8
parent 80
5cb658e37a37
child 88
b7f628541981
--- a/plugins/pubsub2room.lua	Wed Jul 20 01:16:34 2011 +0200
+++ b/plugins/pubsub2room.lua	Sun Aug 21 02:50:10 2011 +0200
@@ -43,10 +43,10 @@
 
 function riddim.plugins.pubsub2room(bot)
 	local bare_jid = require "util.jid".bare;
-	bot:add_plugin("pubsub");
+	bot.stream:add_plugin("pubsub");
 
 	local config = bot.config.pubsub2room;
-	bot:hook("pubsub/event", function(event)
+	bot.stream:hook("pubsub/event", function(event)
 		local conf = config[event.from .. "#" .. event.node];
 		local room = bot.rooms[conf.room];
 		local data = st.stanza(""):tag("id"):text(event.item.attr.id);

mercurial