'RPL_SASLAUTHENTICATED':function (command) {
this.irc_connection.write('CAP END');
this.irc_connection.cap_negotation = false;
+ this.irc_connection.sasl = true;
this.irc_connection.register();
},
'RPL_SASLLOGGEDIN': function (command) {
'ERR_SASLNOTAUTHORISED':function (command) {
this.irc_connection.write('CAP END');
this.irc_connection.cap_negotation = false;
- this.irc_connection.cap.enabled = _.without(this.irc_connection.cap.enabled, 'sasl');
this.irc_connection.register();
},
'ERR_SASLABORTED': function (command) {
- this.irc_connection.cap.enabled = _.without(this.irc_connection.cap.enabled, 'sasl');
+ // noop
},
'ERR_SASLALREADYAUTHED':function (command) {
// noop
clearTimeout(this.registeration_timeout);
this.registration_timeout = null;
}
- if ((this.password) && (!_.contains(this.cap.enabled, 'sasl'))) {
+ if ((this.password) && (!this.sasl)) {
this.write('PASS ' + this.password);
}
this.write('NICK ' + this.nick);