clix.publish_atom: Don't load pubsub plugin ourself, instead pass to clix_connect

Fri, 17 Aug 2012 17:29:21 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 17 Aug 2012 17:29:21 +0200
changeset 93
8ab81c304073
parent 92
a629b953780c
child 94
6f038202a502

clix.publish_atom: Don't load pubsub plugin ourself, instead pass to clix_connect

clix/publish_atom.lua file | annotate | diff | comparison | revisions
--- a/clix/publish_atom.lua	Sat Aug 11 09:25:11 2012 +0200
+++ b/clix/publish_atom.lua	Fri Aug 17 17:29:21 2012 +0200
@@ -18,7 +18,6 @@
 		return 0;
 	end
 	local function on_connect(conn)
-		conn:add_plugin"pubsub";
 		-- Required: id, title, updated, author (which must have a name)
 		local entry_id = opts.entry_id or ("clix-"..new_uuid());
 		local atom_entry = verse.stanza("entry", { xmlns="http://www.w3.org/2005/Atom" })
@@ -43,5 +42,5 @@
 
 		--conn:send(verse.message({ to = opts.to, type = "chat" }) :body(text));
 	end
-	clix_connect(opts, on_connect);
+	clix_connect(opts, on_connect, {"pubsub"});
 end

mercurial