Software /
code /
verse
Comparison
plugins/pubsub.lua @ 264:ffb27e62a11e
plugins.pubsub: Fix typo
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 10 Dec 2011 15:45:55 +0100 |
parent | 263:598e9f93de78 |
child | 265:2a2326a8f9e8 |
comparison
equal
deleted
inserted
replaced
263:598e9f93de78 | 264:ffb27e62a11e |
---|---|
60 | 60 |
61 local function pubsub_iq(iq_type, to, ns, op, node, jid, item_id) | 61 local function pubsub_iq(iq_type, to, ns, op, node, jid, item_id) |
62 local st = verse.iq{ type = iq_type or "get", to = to } | 62 local st = verse.iq{ type = iq_type or "get", to = to } |
63 :tag("pubsub", { xmlns = ns or xmlns_pubsub }) -- ns would be ..#owner | 63 :tag("pubsub", { xmlns = ns or xmlns_pubsub }) -- ns would be ..#owner |
64 if op then st:tag(op, { node = node, jid = jid }); end | 64 if op then st:tag(op, { node = node, jid = jid }); end |
65 if id then st:tag("item", { id = item_id ~= true and item_id or nil }); end | 65 if item_id then st:tag("item", { id = item_id ~= true and item_id or nil }); end |
66 return st; | 66 return st; |
67 end | 67 end |
68 | 68 |
69 -- http://xmpp.org/extensions/xep-0060.html#entity-subscriptions | 69 -- http://xmpp.org/extensions/xep-0060.html#entity-subscriptions |
70 function pubsub_service:subscriptions(callback) | 70 function pubsub_service:subscriptions(callback) |