diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-05-30 00:09:33 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-05-30 00:09:33 +0200 |
commit | ff8def17c85dc6d8f362e2f325037d909850e46b (patch) | |
tree | 640c0ef81f0fbd43287facb31347d5d09985e03f /auth.go | |
parent | c7b0b4e955d625c9d4d08370b683e62d2838651d (diff) | |
download | hydra-dragonfire-ff8def17c85dc6d8f362e2f325037d909850e46b.tar.xz |
Move conversion code into convert package
Diffstat (limited to 'auth.go')
-rw-r--r-- | auth.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ package main import ( "github.com/HimbeerserverDE/srp" "github.com/anon55555/mt" - "github.com/dragonfireclient/hydra-dragonfire/tolua" + "github.com/dragonfireclient/hydra-dragonfire/convert" "github.com/yuin/gopher-lua" "strings" "time" @@ -57,7 +57,7 @@ func (auth *Auth) create(client *Client, l *lua.LState) { l.SetMetatable(auth.userdata, l.GetTypeMetatable("hydra.auth")) } -func (auth *Auth) tolua() lua.LValue { +func (auth *Auth) push() lua.LValue { return auth.userdata } @@ -90,7 +90,7 @@ func (auth *Auth) checkState(state authState, pkt *mt.Pkt) bool { return true } - auth.fail("received " + string(tolua.PktType(pkt)) + " in invalid state") + auth.fail("received " + string(convert.PushPktType(pkt)) + " in invalid state") return false } |