view mod_adhoc.wiki @ 24:c09b888b8ceb

Added compatibility section
author MWild1
date Fri, 25 Sep 2009 23:01:24 +0000
parents 3ff19e27dacb
children ecb2ae0bbeea
line wrap: on
line source

#summary XEP-0050: Ad-Hoc Commands

= Introduction =

implementation of [http://xmpp.org/extensions/xep-0050.html 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 
mod_adhoc_cmd_ping.

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.

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

Or have a look into mod_adhoc_cmd_ping for better details.

= Compatibility =
||0.6||Works||
||0.5||Works||

== TODO ==
  * "remove_item"-support to unregister a previously registered adhoc command