Skip to content

Commit

Permalink
Fixed WA updater account recognition (close #63)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jun 23, 2020
1 parent ecd5f93 commit 22dc2c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CurseBreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,15 +494,15 @@ def c_wa_update(self, _, verbose=True):
accounts = self.core.detect_accounts()
if len(accounts) == 0:
return
elif len(accounts) > 1 and self.core.config['WAUsername'] == '':
elif len(accounts) > 1 and self.core.config['WAAccountName'] == '':
if verbose:
self.console.print('More than one WoW account detected.\nPlease use [white]set_wa_wow_account[/whit'
'e] command to set the correct account name.')
else:
self.console.print('\n[green]More than one WoW account detected.[/green]\nPlease use [white]set_wa_'
'wow_account[/white] command to set the correct account name.')
return
elif len(accounts) == 1 and self.core.config['WAUsername'] == '':
elif len(accounts) == 1 and self.core.config['WAAccountName'] == '':
self.core.config['WAAccountName'] = accounts[0]
self.core.save_config()
wa = WagoUpdater(self.core.config['WAUsername'], self.core.config['WAAccountName'],
Expand Down

0 comments on commit 22dc2c7

Please sign in to comment.