From a9940c2ccf3cdbb5a93f719dcb6720eef2cae752 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sun, 22 May 2011 23:56:57 +0100 Subject: [PATCH] Allow default privileges for new players to be set in the server config --- src/server.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.30.2