9
|
1 #summary mod_adhoc |
|
2 |
|
3 = Introduction = |
|
4 |
|
5 implementation of [http://xmpp.org/extensions/xep-0050.html XEP-0050: Ad-Hoc Commands]. |
|
6 |
|
7 |
|
8 |
|
9 = Details = |
|
10 |
|
11 It will offer any adhoc command which is registered with "module:add_item("adhoc", ....". |
|
12 |
|
13 |
|
14 |
|
15 = Usage = |
|
16 Load mod_adhoc and then any module which provides an adhoc command, such as |
|
17 mod_adhoc_cmd_ping. |
|
18 |
|
19 If you want to build your own adhoc command, just register your adhoc command module with |
|
20 module:add_item and a dictonary with name, node and a handler. |
|
21 |
|
22 e.g. |
|
23 {{{ |
|
24 module:add_item ("adhoc", { name="Ping", node="ping", handler=ping_command_handler }); |
|
25 }}} |
|
26 |
|
27 Or have a look into mod_adhoc_cmd_ping for better details. |