diff options
Diffstat (limited to 'client_conn.go')
-rw-r--r-- | client_conn.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client_conn.go b/client_conn.go index 2f5ba04..8c29b90 100644 --- a/client_conn.go +++ b/client_conn.go @@ -39,6 +39,7 @@ type ClientConn struct { method mt.AuthMethods salt, srpA, srpB, srpM, srpK []byte } + new bool fallbackFrom string whyKicked *mt.ToCltKick @@ -73,6 +74,9 @@ type ClientConn struct { // Name returns the player name of the ClientConn. func (cc *ClientConn) Name() string { return cc.name } +// IsNew reports whether a new account was registered for the ClientConn. +func (cc *ClientConn) IsNew() bool { return cc.new } + func (cc *ClientConn) hasPlayerCAO() bool { return cc.playerCAO != 0 } func (cc *ClientConn) server() *ServerConn { |