# HG changeset patch # User Kim Alvefur # Date 1345217361 -7200 # Node ID 8ab81c304073f0c8fd2b6e9602f5e33fbf156904 # Parent a629b953780c24f7826e4adacedc8d11b1f8294f clix.publish_atom: Don't load pubsub plugin ourself, instead pass to clix_connect diff -r a629b953780c -r 8ab81c304073 clix/publish_atom.lua --- 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