From e69b198e42669d37e5d36d52b2b81a0b25bcd7ef Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 5 Jan 2019 10:24:02 -0600 Subject: [PATCH] Fix check for password not already set when setting it during connection --- pydle/features/rfc1459/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydle/features/rfc1459/client.py b/pydle/features/rfc1459/client.py index 665322a..773efed 100644 --- a/pydle/features/rfc1459/client.py +++ b/pydle/features/rfc1459/client.py @@ -190,7 +190,7 @@ class RFC1459Support(BasicClient): await super().connect(hostname, port, **kwargs) # Check if a password was provided and we don't already have one - if password is not None and self.password: + if password is not None and not self.password: # if so, set the password. self.password = password # And initiate the IRC connection.