Fix check for password not already set when setting it during connection

This commit is contained in:
Harmon 2019-01-05 10:24:02 -06:00
parent 26d9bd5547
commit e69b198e42
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.