mirror of https://github.com/Shizmob/pydle.git
Fix check for password not already set when setting it during connection
This commit is contained in:
parent
26d9bd5547
commit
e69b198e42
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue