aboutsummaryrefslogtreecommitdiff
path: root/src/auth.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-31 00:23:39 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-31 00:23:39 +0300
commitdb36771c63040933d43bc12adc4ad840472004d3 (patch)
treeaa34bdd3888b7b298da29b8768e80272b3fd5241 /src/auth.h
parent41f07328c89e04d00a541334c557f802aaa2f659 (diff)
downloaddragonfireclient-db36771c63040933d43bc12adc4ad840472004d3.tar.xz
auth stuff is now saved only when modified
Diffstat (limited to 'src/auth.h')
-rw-r--r--src/auth.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/auth.h b/src/auth.h
index 472409d46..62dced2a3 100644
--- a/src/auth.h
+++ b/src/auth.h
@@ -89,10 +89,12 @@ public:
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