Skip to content

Commit

Permalink
Merge pull request #368 from tom--/master
Browse files Browse the repository at this point in the history
SyntaxError: Octal literals are not allowed in strict mode.
  • Loading branch information
jirwin committed Sep 3, 2015
2 parents b1ce664 + 12d161d commit 824789e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,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;

Expand Down Expand Up @@ -1018,7 +1018,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) {
Expand Down

0 comments on commit 824789e

Please sign in to comment.