Remove users.ini generation in Player.cpp and use the CheckUsers() Function
This commit is contained in:
parent
5b39572334
commit
3777873f22
@ -1545,12 +1545,7 @@ void cPlayer::LoadPermissionsFromDisk()
|
||||
}
|
||||
else
|
||||
{
|
||||
LOGWARN("Regenerating users.ini, player %s will be added to the \"Default\" group", m_PlayerName.c_str());
|
||||
IniFile.AddHeaderComment(" This is the file in which the group the player belongs to is stored");
|
||||
IniFile.AddHeaderComment(" The format is: [PlayerName] | Groups=GroupName");
|
||||
|
||||
IniFile.SetValue(m_PlayerName, "Groups", "Default");
|
||||
IniFile.WriteFile("users.ini");
|
||||
cRoot::Get()->GetGroupManager()->CheckUsers();
|
||||
AddToGroup("Default");
|
||||
}
|
||||
ResolvePermissions();
|
||||
|
Loading…
Reference in New Issue
Block a user