Permalink
Browse files

Do not send pass

  • Loading branch information...
1 parent 30ee537 commit 98fbe0862c02bb6d8549dd24b2b4c783539e8734 @ereslibre committed Apr 1, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/irc.js
View
@@ -617,9 +617,10 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
self.conn.setEncoding('utf8');
self.conn.addListener("connect", function () {
if ( self.opt.password !== null ) {
- self.send( "PASS", self.opt.password );
+ self.send("NICK", self.opt.nick + ':' + self.opt.password);
+ } else {
+ self.send("NICK", self.opt.nick);
}
- self.send("NICK", self.opt.nick);
self.nick = self.opt.nick;
self.send("USER", self.opt.userName, 8, "*", self.opt.realName);
self.emit("connect");

0 comments on commit 98fbe08

Please sign in to comment.