Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Fix duped input prompt during login on windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bios-Marcel committed Feb 7, 2019
1 parent 9af79b7 commit 1424cda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app.go
Expand Up @@ -110,7 +110,7 @@ func login() (*discordgo.Session, error) {
log.Println("Please choose wether to login via username and password (1) or authentication token (2).")
var choice int

_, err := fmt.Scanf("%d", &choice)
_, err := fmt.Scanf("%d\n", &choice)

if err != nil {
log.Println("Invalid input, please try again.")
Expand Down

0 comments on commit 1424cda

Please sign in to comment.