view @ 120:2676620a26f0

Added a space
author waqas20
date Sat, 06 Mar 2010 10:59:00 +0000
parents 039a141a9c03
children 040360195e00
line wrap: on
line source

#summary XEP-0050: Ad-Hoc Commands
#labels Stage-Beta

= Introduction =

implementation of [ XEP-0050: Ad-Hoc Commands].

= Details =

Will offer any adhoc command registered via 'module:add_item("adhoc", ....)'.

= Usage =

First copy (or symlink) the directory "adhoc" which contains mod_adhoc to your plugins directory.
Load mod_adhoc and then any module which provides an adhoc command, such as 

If you want to build your own adhoc command, just register your adhoc command module with 
module:add_item and a descriptor for your command.

A descriptor can be created like this:
local adhoc_new = module:require "adhoc".new;
local descriptor = adhoc_new("Name", "node", handler);
module:add_item ("adhoc", descriptor)

For a simple module and details have a look at mod_adhoc_cmd_ping.

= Compatibility =
||0.6||Most commands work||