comparison modules/mod_adhoc.js @ 30:b2faacfefb90

Rewrite of the module manager; fix of some modules; fix of the directory backend.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 04 Nov 2010 17:50:52 +0100
parents b80ab94da447
children 6697f394301f
comparison
equal deleted inserted replaced
29:e007a6364bf0 30:b2faacfefb90
5 var makeError = errors.makeError; 5 var makeError = errors.makeError;
6 var toBareJID = require('../util').toBareJID; 6 var toBareJID = require('../util').toBareJID;
7 var NS = require('../namespaces'); 7 var NS = require('../namespaces');
8 8
9 // XEP-0050: Ad-Hoc Commands 9 // XEP-0050: Ad-Hoc Commands
10 exports.configureSub = { 10 exports.adHoc = {
11 type: 'set', 11 type: 'set',
12 child: 'command', 12 child: 'command',
13 ns: NS.COMMANDS, 13 ns: NS.COMMANDS,
14 func: function(response, stanza, request, to) { 14 func: function(response, stanza, request, to) {
15 var action = request.getAttribute('action'); 15 var action = request.getAttribute('action');