# HG changeset patch # User t.ephraim # Date 1253889753 0 # Node ID 8739493ced0d5b99730087dc0251c66a2fe6136e # Parent 310c9bbceb3d6cd16accbcc30821a12089df2402 Created wiki page through web user interface. diff -r 310c9bbceb3d -r 8739493ced0d mod_adhoc.wiki --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_adhoc.wiki Fri Sep 25 14:42:33 2009 +0000 @@ -0,0 +1,27 @@ +#summary mod_adhoc + += 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. \ No newline at end of file