From 5da82e7d66fd749991751203e73750a04f1fae28 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 10 Apr 2020 21:36:03 +0100 Subject: [PATCH] check for PLAIN should use `match[0]` not `match` --- ircrobots/sasl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircrobots/sasl.py b/ircrobots/sasl.py index 489a4d5..51e716b 100644 --- a/ircrobots/sasl.py +++ b/ircrobots/sasl.py @@ -129,7 +129,7 @@ class SASLContext(ServerContext): elif line.command == "AUTHENTICATE" and line.params[0] == "+": auth_text = "" - if match == "PLAIN": + if match[0] == "PLAIN": auth_text = f"{username}\0{username}\0{password}" elif match[0].startswith("SCRAM-SHA-"): auth_text = await self._scram(