Permalink
Browse files

Try with hex encoding

  • Loading branch information...
1 parent 495fdf6 commit d6363b1d6e6433859360276551b607dc1c2e087b @ereslibre committed Apr 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/irc.js
View
4 lib/irc.js
@@ -590,7 +590,7 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
(self.opt.certExpired &&
self.conn.authorizationError === 'CERT_HAS_EXPIRED')) {
// authorization successful
- self.conn.setEncoding('iso-8859-15');
+ self.conn.setEncoding('hex');
if ( self.opt.certExpired &&
self.conn.authorizationError === 'CERT_HAS_EXPIRED' ) {
util.log('Connecting to server with expired certificate');
@@ -614,7 +614,7 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
}
self.conn.requestedDisconnect = false;
self.conn.setTimeout(0);
- self.conn.setEncoding('iso-8859-15');
+ self.conn.setEncoding('hex');
self.conn.addListener("connect", function () {
if ( self.opt.password !== null ) {
self.send("NICK", self.opt.nick + ':' + self.opt.password);

0 comments on commit d6363b1

Please sign in to comment.