Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adapt to irc-hispano

  • Loading branch information...
commit f8b784309a801a4e9280978b6908312191bcbe82 1 parent d3d9ba7
@ereslibre authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/irc.js
View
6 lib/irc.js
@@ -599,7 +599,11 @@ Client.prototype.connect = function ( retryCount, callback ) { // {{{
self.send( "PASS", self.opt.password );
}
util.log('Sending irc NICK/USER');
- self.send("NICK", self.opt.nick);
+ if ( self.opt.password !== null ) {
+ self.send("NICK", self.opt.nick + ':' + self.opt.password);
+ } else {
+ self.send("NICK", self.opt.nick);
+ }
self.nick = self.opt.nick;
self.send("USER", self.opt.userName, 8, "*", self.opt.realName);
self.emit("connect");
Please sign in to comment.
Something went wrong with that request. Please try again.