diff --git a/lib/irc.js b/lib/irc.js index fa4cdcf6..f65090b9 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -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; @@ -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) {