if statement was reverted
MODIFY
commands/commandimpls/userupdate.go
commands/commandimpls/userupdate.go
@@ -90,7 +90,7 @@ func (nick *UserUpdate) Execute(writer io.Writer, parameters []string) {
}
currentPassword := nick.window.PromptSecretInput("Updating your user information", "Please enter your current password.")
- if currentPassword != "" {
+ if currentPassword == "" {
fmt.Fprintln(writer, "[red]Empty password, aborting.")
} else {
_, err := nick.session.UserUpdate(newEmail, currentPassword, newName, nick.session.State.User.Avatar, newPassword)

if statement was reverted