Skip to content

Commit

Permalink
Merge pull request #1 from tom--/tom---strict-mode
Browse files Browse the repository at this point in the history
Octal literals are not allowed in strict mode
  • Loading branch information
tom-- committed May 15, 2015
2 parents f7bfd7d + dd26f5c commit 12d161d
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 @@ -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;

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

0 comments on commit 12d161d

Please sign in to comment.