comparison storage.js @ 43:023f767662d3

Fix compatibility with strict mode of node 0.4 and some files without licence header.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 01 Mar 2011 11:58:15 +0100
parents 6697f394301f
children 0d3f18bb1d36
comparison
equal deleted inserted replaced
42:07ca0263a53f 43:023f767662d3
14 * GNU Affero General Public License for more details. 14 * GNU Affero General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Affero General Public License 16 * You should have received a copy of the GNU Affero General Public License
17 * along with PSĜS. If not, see <http://www.gnu.org/licenses/>. 17 * along with PSĜS. If not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19
20 'use strict';
19 21
20 var fs = require('fs'); 22 var fs = require('fs');
21 var sha1hex = require('sha1').hex; 23 var sha1hex = require('sha1').hex;
22 require('./iso8601'); 24 require('./iso8601');
23 var errors = require('./errors'); 25 var errors = require('./errors');
491 affils[node.outcast[jid]] = 'outcast'; 493 affils[node.outcast[jid]] = 'outcast';
492 return affils; 494 return affils;
493 }; 495 };
494 496
495 storage.debug = function() { 497 storage.debug = function() {
496 console.log('\033[1;33m' + require('sys').inspect(backend.list, null, null) + '\033[0m'); 498 console.log('\x1b[1;33m' + require('sys').inspect(backend.list, null, null) + '\x1b[0m');
497 }; 499 };