Permalink
Browse files

Adapt to irc-hispano

  • Loading branch information...
1 parent d3d9ba7 commit f8b784309a801a4e9280978b6908312191bcbe82 @ereslibre committed Apr 1, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/irc.js
View
@@ -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");

0 comments on commit f8b7843

Please sign in to comment.