prevent PSN fake login from attempting to create a character

This commit is contained in:
wish
2023-08-02 21:04:08 +10:00
parent 165bdaf760
commit 6c68b2f3ed

View File

@@ -14,7 +14,7 @@ import (
func (s *Session) makeSignResponse(uid uint32) []byte {
// Get the characters from the DB.
chars, err := s.server.getCharactersForUser(uid)
if len(chars) == 0 {
if len(chars) == 0 && uid != 0 {
err = s.server.newUserChara(uid)
if err == nil {
chars, err = s.server.getCharactersForUser(uid)