Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cient.join: when user specify a password #166

Merged
merged 1 commit into from
Sep 6, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Client(server, nick, opt) {
channelPrefixes: "&#",
messageSplit: 512
};

// Features supported by the server
// (initial values are RFC 1459 defaults. Zeros signify
// no default or unlimited value)
Expand Down Expand Up @@ -123,7 +123,6 @@ function Client(server, nick, opt) {
value = value.split(',');
var type = ['a','b','c','d']
for (var i = 0; i < type.length; i++) {

self.supported.channel.modes[type[i]] += value[i];
}
break;
Expand Down Expand Up @@ -729,7 +728,8 @@ Client.prototype.activateFloodProtection = function(interval) { // {{{

}; // }}}
Client.prototype.join = function(channel, callback) { // {{{
this.once('join' + channel, function () {
var channelName = channel.split(' ')[0];
this.once('join' + channelName, function () {
// if join is successful, add this channel to opts.channels
// so that it will be re-joined upon reconnect (as channels
// specified in options are)
Expand Down