home · contact · privacy
Fix variable name.
[plomlombot-irc.git] / plomlombot.py
index 1128eff61c757451ac80968dd74a1becfb85eed2..0e02f1c6dd426b60a380e8cb14dd02b43e992424 100755 (executable)
@@ -490,7 +490,7 @@ class Session:
         self.io.send_line("USER " + username + " 0 * : ")
         if sasl:
             self.io.send_line("AUTHENTICATE PLAIN")
-            auth = username + '\0' + username + '\0' + password
+            auth = username + '\0' + username + '\0' + sasl
             auth_encoded = base64.b64encode(auth.encode()).decode().rstrip()
             self.io.send_line("AUTHENTICATE " + auth_encoded)
             self.io.send_line("CAP END")