Mercurial > prosody-wiki
comparison mod_adhoc.wiki @ 9:8739493ced0d
Created wiki page through web user interface.
author | t.ephraim |
---|---|
date | Fri, 25 Sep 2009 14:42:33 +0000 |
parents | |
children | eabbd329830c |
comparison
equal
deleted
inserted
replaced
8:310c9bbceb3d | 9:8739493ced0d |
---|---|
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. |