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
|
else
|
||||||
{
|
{
|
||||||
LOGWARN("Regenerating users.ini, player %s will be added to the \"Default\" group", m_PlayerName.c_str());
|
cRoot::Get()->GetGroupManager()->CheckUsers();
|
||||||
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");
|
|
||||||
AddToGroup("Default");
|
AddToGroup("Default");
|
||||||
}
|
}
|
||||||
ResolvePermissions();
|
ResolvePermissions();
|
||||||
|
Loading…
Reference in New Issue
Block a user