Added welcome message when logging in for the first time with autologin disabled

This commit is contained in:
Michael Lazar
2018-10-01 01:45:33 -04:00
parent 7a1f2ea2eb
commit 19f246adac
5 changed files with 156 additions and 15 deletions

View File

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