Comparison

plugins/adhoc.lua @ 308:2bcc97bc5f43

plugins.adhoc: Add explicit dependency on the disco plugin.
author Kim Alvefur <zash@zash.se>
date Wed, 04 Jul 2012 03:34:12 +0200
parent 250:a5ac643a7fd6
child 309:6297d658769f
comparison
equal deleted inserted replaced
307:9d295d44a16e 308:2bcc97bc5f43
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")