comparison storage.js @ 9:a6429f48e403

First implementation of XEP-0050 (ad-hoc commands).
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 27 Aug 2010 00:39:03 +0200
parents 2bcadb0531f4
children 44889cfb2f8c
comparison
equal deleted inserted replaced
8:efe8dbd34780 9:a6429f48e403
31 var Node = nodes.Node; 31 var Node = nodes.Node;
32 var Item = nodes.Item; 32 var Item = nodes.Item;
33 33
34 var fs = require('fs'); 34 var fs = require('fs');
35 35
36 var list = {}; 36 var list;
37 37
38 var storage = exports; 38 var storage = exports;
39 storage.createNode = function(nodeID, params) { 39 storage.createNode = function(nodeID, params) {
40 for (var i in list) 40 for (var i in list)
41 if (i == nodeID) 41 if (i == nodeID)