Skip to content

Commit 12d161d

Browse files
committed
Merge pull request #1 from tom--/tom---strict-mode
Octal literals are not allowed in strict mode
2 parents f7bfd7d + dd26f5c commit 12d161d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/irc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ function Client(server, nick, opt) {
581581

582582
case 'err_erroneusnickname':
583583
if (self.opt.showErrors)
584-
util.log('\033[01;31mERROR: ' + util.inspect(message) + '\033[0m');
584+
util.log('\u001b[01;31mERROR: ' + util.inspect(message) + '\u001b[0m');
585585
self.emit('error', message);
586586
break;
587587

@@ -1016,7 +1016,7 @@ Client.prototype._handleCTCP = function(from, to, text, type, message) {
10161016
};
10171017

10181018
Client.prototype.ctcp = function(to, type, text) {
1019-
return this[type === 'privmsg' ? 'say' : 'notice'](to, '\1' + text + '\1');
1019+
return this[type === 'privmsg' ? 'say' : 'notice'](to, '\u0001' + text + '\u0001');
10201020
};
10211021

10221022
Client.prototype.convertEncoding = function(str) {

0 commit comments

Comments
 (0)