Mercurial > psgxs
diff notifs.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 | b80ab94da447 |
children | ca17b63f561f |
line wrap: on
line diff
--- a/notifs.js +++ b/notifs.js @@ -1,3 +1,5 @@ +'use strict'; + var xmpp = require('xmpp'); var storage = require('./storage'); var config = require('./configuration'); @@ -6,7 +8,7 @@ var conn; function _(obj, color) { var str = require('sys').inspect(obj, false, null); if (color) - console.log('\033['+c+';1m' + str + '\033[0m'); + console.log('\x1b['+c+';1m' + str + '\x1b[0m'); else console.log(str); };