diff --git a/ircrobots/sasl.py b/ircrobots/sasl.py index 4ed556a..1fc898f 100644 --- a/ircrobots/sasl.py +++ b/ircrobots/sasl.py @@ -103,7 +103,7 @@ class SASLContext(ServerContext): f"(we want: {mechanisms} " f"server has: {server_mechs})") - if not self.server.available_caps["sasl"] is None: + if self.server.available_caps["sasl"]: # CAP v3.2 tells us what mechs it supports available = self.server.available_caps["sasl"].split(",") match = _common(available) diff --git a/requirements.txt b/requirements.txt index 6810584..ada0bb5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -ircstates ==0.8.1 +ircstates ==0.8.2 asyncio-throttle ==1.0.1 dataclasses ==0.6