From: Ciaran Gultnieks Date: Sun, 22 May 2011 22:56:57 +0000 (+0100) Subject: Allow default privileges for new players to be set in the server config X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a9940c2ccf3cdbb5a93f719dcb6720eef2cae752;p=zefram%2Fminetest%2Fminetest_engine.git Allow default privileges for new players to be set in the server config --- diff --git a/src/server.cpp b/src/server.cpp index 5c03ea8f..9b4ee1fa 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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 */