63 return verse.iq{ type="get", to=host}:query"jabber:iq:version"; |
63 return verse.iq{ type="get", to=host}:query"jabber:iq:version"; |
64 end, |
64 end, |
65 vcard = function(who) |
65 vcard = function(who) |
66 return verse.iq{ type="get", to=who}:tag("vCard",{xmlns="vcard-temp"}); |
66 return verse.iq{ type="get", to=who}:tag("vCard",{xmlns="vcard-temp"}); |
67 end, |
67 end, |
|
68 pubsub = function(...) |
|
69 return conn.pubsub(...); |
|
70 end, |
68 disco = function (to, node) |
71 disco = function (to, node) |
69 return verse.iq{ type="get", to=to }:tag("query", { xmlns="http://jabber.org/protocol/disco#info", node = node }); |
72 return verse.iq{ type="get", to=to }:tag("query", { xmlns="http://jabber.org/protocol/disco#info", node = node }); |
70 end, |
73 end, |
71 items = function (to, node) |
74 items = function (to, node) |
72 return verse.iq{ type="get", to=to }:tag("query", { xmlns="http://jabber.org/protocol/disco#items", node = node }); |
75 return verse.iq{ type="get", to=to }:tag("query", { xmlns="http://jabber.org/protocol/disco#items", node = node }); |