]> git.lizzy.rs Git - minetest.git/blobdiff - src/auth.h
When player times out, log the action as a timeout rather than regular quitting
[minetest.git] / src / auth.h
index 472409d46391a626250daf479f157ff69399a4c3..5ea697a6acd1792230ac1e509c31719438e78187 100644 (file)
@@ -38,6 +38,7 @@ const u64 PRIV_SERVER = 16;          // Can manage the server (e.g. shutodwn
                                      // ,settings)
 const u64 PRIV_SHOUT = 32;           // Can broadcast chat messages to all
                                      // players
+const u64 PRIV_BAN = 64;             // Can ban players
 
 // Default privileges - these can be overriden for new players using the
 // config option "default_privs" - however, this value still applies for
@@ -89,10 +90,12 @@ class AuthManager
                        const std::string &password);
        u64 getPrivs(const std::string &username);
        void setPrivs(const std::string &username, u64 privs);
+       bool isModified();
 private:
        JMutex m_mutex;
        std::string m_authfilepath;
        core::map<std::string, AuthData> m_authdata;
+       bool m_modified;
 };
 
 #endif