mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 07:55:33 +01:00
prevent PSN fake login from attempting to create a character
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
|||||||
func (s *Session) makeSignResponse(uid uint32) []byte {
|
func (s *Session) makeSignResponse(uid uint32) []byte {
|
||||||
// Get the characters from the DB.
|
// Get the characters from the DB.
|
||||||
chars, err := s.server.getCharactersForUser(uid)
|
chars, err := s.server.getCharactersForUser(uid)
|
||||||
if len(chars) == 0 {
|
if len(chars) == 0 && uid != 0 {
|
||||||
err = s.server.newUserChara(uid)
|
err = s.server.newUserChara(uid)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
chars, err = s.server.getCharactersForUser(uid)
|
chars, err = s.server.getCharactersForUser(uid)
|
||||||
|
|||||||
Reference in New Issue
Block a user