Allow default privileges for new players to be set in the server config

This commit is contained in:
Ciaran Gultnieks 2011-05-22 23:56:57 +01:00
parent a8a3271470
commit a9940c2ccf

@ -4185,6 +4185,9 @@ Player *Server::emergePlayer(const char *name, const char *password, u16 peer_id
player->updateName(name);
player->updatePassword(password);
if(g_settings.exists("default_privs"))
player->privs = g_settings.getU64("default_privs");
/*
Set player position
*/