1
0
Fork 0

Remove users.ini generation in Player.cpp and use the CheckUsers() Function

This commit is contained in:
Howaner 2014-02-21 15:10:31 +01:00
parent 5b39572334
commit 3777873f22
1 changed files with 1 additions and 6 deletions

View File

@ -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();