Merge pull request #108 from Harmon758/connect-with-password-fix

Fix usage of password to connect
This commit is contained in:
Joshua Salzedo 2019-01-05 16:33:41 -08:00 committed by GitHub
commit 845429fee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.