diff options
author | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-22 23:56:57 +0100 |
---|---|---|
committer | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-22 23:56:57 +0100 |
commit | a9940c2ccf3cdbb5a93f719dcb6720eef2cae752 (patch) | |
tree | 6b1dc8e8129d7de14415a0f94ca0077dbd450771 /src | |
parent | a8a3271470299820c5322523dc439415bc1ff8a0 (diff) | |
download | minetest-a9940c2ccf3cdbb5a93f719dcb6720eef2cae752.tar.gz minetest-a9940c2ccf3cdbb5a93f719dcb6720eef2cae752.tar.bz2 minetest-a9940c2ccf3cdbb5a93f719dcb6720eef2cae752.zip |
Allow default privileges for new players to be set in the server config
Diffstat (limited to 'src')
-rw-r--r-- | src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp index 5c03ea8f6..9b4ee1fad 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 */ |