mirror of https://github.com/Shizmob/pydle.git
Merge pull request #108 from Harmon758/connect-with-password-fix
Fix usage of password to connect
This commit is contained in:
commit
845429fee9
|
@ -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