aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_login_account.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/core_login_account.go')
-rw-r--r--internal/game/core_login_account.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/core_login_account.go b/internal/game/core_login_account.go
index 87f8c62..a2c1bd8 100644
--- a/internal/game/core_login_account.go
+++ b/internal/game/core_login_account.go
@@ -83,7 +83,7 @@ func (g *Game) handlePassword(sess *net.Session, input string) {
g.showMenu(sess)
}
-func (g *Game) handleNewAccountPass(sess *net.Session, input string) {
+func (g *Game) handleNewPass(sess *net.Session, input string) {
input = strings.TrimSpace(input)
if input == "" {
sess.Conn.SetEcho(true)
@@ -98,11 +98,11 @@ func (g *Game) handleNewAccountPass(sess *net.Session, input string) {
return
}
sess.PendingPass = input
- sess.State = net.StateNewAccountConfirm
+ sess.State = net.StateNewAccount
sess.Write("Confirm password: ")
}
-func (g *Game) handleNewAccountConfirm(sess *net.Session, input string) {
+func (g *Game) handleNewAccount(sess *net.Session, input string) {
input = strings.TrimSpace(input)
if input == "" {
sess.Conn.SetEcho(true)