mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Profiler
* truncate local profile if sync with game server fails (entry deleted) * do not use chars/guilds/arena teams with empty names
This commit is contained in:
@@ -573,7 +573,15 @@ class RemoteProfileList extends ProfileList
|
||||
}
|
||||
else
|
||||
{
|
||||
trigger_error('character "'.$curTpl['name'].'" belongs to nonexistant realm #'.$r, E_USER_WARNING);
|
||||
trigger_error('char #'.$guid.' belongs to nonexistant realm #'.$r, E_USER_WARNING);
|
||||
unset($this->templates[$guid]);
|
||||
continue;
|
||||
}
|
||||
|
||||
// empty name
|
||||
if (!$curTpl['name'])
|
||||
{
|
||||
trigger_error('char #'.$guid.' on realm #'.$r.' has empty name.', E_USER_WARNING);
|
||||
unset($this->templates[$guid]);
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user