From dd26f5c8b1ea18c1e847a7dffee6e957a75eab51 Mon Sep 17 00:00:00 2001 From: tom-- Date: Fri, 15 May 2015 14:25:25 -0400 Subject: [PATCH] Octal literals are not allowed in strict mode --- lib/irc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/irc.js b/lib/irc.js index b9159b25..7cbcf281 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -581,7 +581,7 @@ function Client(server, nick, opt) { case 'err_erroneusnickname': if (self.opt.showErrors) - util.log('\033[01;31mERROR: ' + util.inspect(message) + '\033[0m'); + util.log('\u001b[01;31mERROR: ' + util.inspect(message) + '\u001b[0m'); self.emit('error', message); break; @@ -1016,7 +1016,7 @@ Client.prototype._handleCTCP = function(from, to, text, type, message) { }; Client.prototype.ctcp = function(to, type, text) { - return this[type === 'privmsg' ? 'say' : 'notice'](to, '\1' + text + '\1'); + return this[type === 'privmsg' ? 'say' : 'notice'](to, '\u0001' + text + '\u0001'); }; Client.prototype.convertEncoding = function(str) {