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