--- deliantra/server/ext/login.ext 2007/04/04 02:20:27 1.36 +++ deliantra/server/ext/login.ext 2007/04/06 22:57:53 1.37 @@ -356,6 +356,19 @@ ); next; } + } else { + # unable to load the playerfile: + # check wether the player dir exists, which means the file is corrupted or + # something very similar. + if (!aio_stat cf::player::playerdir $user) { + $ns->send_drawinfo ( + "Unable to retrieve this player. It might be a locked or broken account. " + . "If this is your account, ask a dungeon master for assistance. " + . "Otherwise choose a different login name.", + cf::NDI_RED + ); + next; + } } # the rest of this function is character creation