annotate mod_adhoc.wiki @ 33:ecb2ae0bbeea

Edited wiki page through web user interface.
author t.ephraim
date Sun, 27 Sep 2009 16:53:26 +0000
parents c09b888b8ceb
children 5012ffd5d569
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
eabbd329830c Edited wiki page through web user interface.
t.ephraim
parents: 9
diff changeset
1 #summary XEP-0050: Ad-Hoc Commands
33
ecb2ae0bbeea Edited wiki page through web user interface.
t.ephraim
parents: 24
diff changeset
2 #labels Stage-Beta
9
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
3
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
4 = Introduction =
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
5
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
6 implementation of [http://xmpp.org/extensions/xep-0050.html XEP-0050: Ad-Hoc Commands].
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
7
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
8
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
9
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
10 = Details =
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
11
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
12 It will offer any adhoc command which is registered with "module:add_item("adhoc", ....".
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
13
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
14
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
15
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
16 = Usage =
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
17 Load mod_adhoc and then any module which provides an adhoc command, such as
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
18 mod_adhoc_cmd_ping.
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
19
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
20 If you want to build your own adhoc command, just register your adhoc command module with
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
21 module:add_item and a dictonary with name, node and a handler.
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
22
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
23 e.g.
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
24 {{{
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
25 module:add_item ("adhoc", { name="Ping", node="ping", handler=ping_command_handler });
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
26 }}}
8739493ced0d Created wiki page through web user interface.
t.ephraim
parents:
diff changeset
27
12
3ff19e27dacb Edited wiki page through web user interface.
t.ephraim
parents: 10
diff changeset
28 Or have a look into mod_adhoc_cmd_ping for better details.
3ff19e27dacb Edited wiki page through web user interface.
t.ephraim
parents: 10
diff changeset
29
24
c09b888b8ceb Added compatibility section
MWild1
parents: 12
diff changeset
30 = Compatibility =
c09b888b8ceb Added compatibility section
MWild1
parents: 12
diff changeset
31 ||0.6||Works||
33
ecb2ae0bbeea Edited wiki page through web user interface.
t.ephraim
parents: 24
diff changeset
32 ||0.5.2||Works||