Add autologin config option and cli parameter

This commit is contained in:
codesoap
2018-08-27 21:27:32 +02:00
parent 9f40dce615
commit 5f876da3a7
3 changed files with 8 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ def main():
# Authorize on launch if the refresh token is present
oauth = OAuthHelper(reddit, term, config)
if config.refresh_token:
if config['autologin'] and config.refresh_token:
oauth.authorize()
page = None