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

master
Ciaran Gultnieks 2011-05-22 23:56:57 +01:00
parent a8a3271470
commit a9940c2ccf
1 changed files with 3 additions and 0 deletions

View File

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