Software / code / clix
Changeset
93:8ab81c304073
clix.publish_atom: Don't load pubsub plugin ourself, instead pass to clix_connect
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 17 Aug 2012 17:29:21 +0200 |
| parents | 92:a629b953780c |
| children | 94:6f038202a502 |
| files | clix/publish_atom.lua |
| diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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