fix typo
[KiwiIRC.git] / server / irc / connection.js
index 28e6519d9d20608f5decc5374d3562d58664e4c5..b9c130586a3596ba527d5fb44c97ccb2925b5a09 100644 (file)
@@ -111,7 +111,7 @@ IrcConnection.prototype.register = function () {
         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);