Software /
code /
verse
Diff
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 |
line wrap: on
line diff
--- a/plugins/pubsub.lua Sat Dec 10 15:45:55 2011 +0100 +++ b/plugins/pubsub.lua Sun Dec 11 02:26:55 2011 +0000 @@ -33,15 +33,15 @@ -- COMPAT function pubsub:create(server, node, callback) - return self:server(server):node(node):create(nil, callback); + return self:service(server):node(node):create(nil, callback); end function pubsub:subscribe(server, node, jid, callback) - return self:server(server):node(node):subscribe(jid, nil, callback); + return self:service(server):node(node):subscribe(jid, nil, callback); end function pubsub:publish(server, node, id, item, callback) - return self:server(server):node(node):publish(id, nil, item, callback); + return self:service(server):node(node):publish(id, nil, item, callback); end --------------------------------------------------------------------------