9 |
9 |
10 -- Table of commands we provide |
10 -- Table of commands we provide |
11 local commands = {}; |
11 local commands = {}; |
12 |
12 |
13 function verse.plugins.adhoc(stream) |
13 function verse.plugins.adhoc(stream) |
|
14 stream:add_plugin("disco"); |
14 stream:add_disco_feature(xmlns_commands); |
15 stream:add_disco_feature(xmlns_commands); |
15 |
16 |
16 function stream:query_commands(jid, callback) |
17 function stream:query_commands(jid, callback) |
17 stream:disco_items(jid, xmlns_commands, function (items) |
18 stream:disco_items(jid, xmlns_commands, function (items) |
18 stream:debug("adhoc list returned") |
19 stream:debug("adhoc list returned") |