Software /
code /
verse
Comparison
plugins/pubsub.lua @ 265:2a2326a8f9e8
plugins.pubsub: Fix to use correct method in backwards-compatibility code
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 11 Dec 2011 02:26:55 +0000 |
parent | 264:ffb27e62a11e |
child | 272:e1833e9bd25b |
comparison
equal
deleted
inserted
replaced
264:ffb27e62a11e | 265:2a2326a8f9e8 |
---|---|
31 return true; | 31 return true; |
32 end | 32 end |
33 | 33 |
34 -- COMPAT | 34 -- COMPAT |
35 function pubsub:create(server, node, callback) | 35 function pubsub:create(server, node, callback) |
36 return self:server(server):node(node):create(nil, callback); | 36 return self:service(server):node(node):create(nil, callback); |
37 end | 37 end |
38 | 38 |
39 function pubsub:subscribe(server, node, jid, callback) | 39 function pubsub:subscribe(server, node, jid, callback) |
40 return self:server(server):node(node):subscribe(jid, nil, callback); | 40 return self:service(server):node(node):subscribe(jid, nil, callback); |
41 end | 41 end |
42 | 42 |
43 function pubsub:publish(server, node, id, item, callback) | 43 function pubsub:publish(server, node, id, item, callback) |
44 return self:server(server):node(node):publish(id, nil, item, callback); | 44 return self:service(server):node(node):publish(id, nil, item, callback); |
45 end | 45 end |
46 | 46 |
47 -------------------------------------------------------------------------- | 47 -------------------------------------------------------------------------- |
48 ---------------------New and improved PubSub interface-------------------- | 48 ---------------------New and improved PubSub interface-------------------- |
49 -------------------------------------------------------------------------- | 49 -------------------------------------------------------------------------- |