view @ 9:8739493ced0d

Created wiki page through web user interface.
author t.ephraim
date Fri, 25 Sep 2009 14:42:33 +0000
children eabbd329830c
line wrap: on
line source

#summary mod_adhoc

= Introduction =

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

= Details =

It will offer any adhoc command which is registered with "module:add_item("adhoc", ....".

= Usage =
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 dictonary with name, node and a handler.

module:add_item ("adhoc", { name="Ping", node="ping", handler=ping_command_handler });

Or have a look into mod_adhoc_cmd_ping for better details.