diff options
author | sorcerykid <rkrause@inbox.com> | 2020-05-23 06:24:06 -0500 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2020-05-23 13:25:29 +0200 |
commit | 15ba75e4cf1d1b8ceaa9d8ce33dcfdd7dbe80741 (patch) | |
tree | 482763407643cd776af9bd2c79e241969bbc644f /src/script/cpp_api/s_server.h | |
parent | 037422fdba9a47bd538480988fbf8aad67d66c85 (diff) | |
download | hax-minetest-server-15ba75e4cf1d1b8ceaa9d8ce33dcfdd7dbe80741.tar.gz hax-minetest-server-15ba75e4cf1d1b8ceaa9d8ce33dcfdd7dbe80741.zip |
Add on_authplayer callback and 'last_login' to on_joinplayer (#9574)
Replace on_auth_fail callback with more versatile on_authplayer
Better clarify account login process in Lua API documentation
Change initial timestamp for newly registered accounts to -1
Diffstat (limited to 'src/script/cpp_api/s_server.h')
-rw-r--r-- | src/script/cpp_api/s_server.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/script/cpp_api/s_server.h b/src/script/cpp_api/s_server.h index a4cede84d..d8639cba7 100644 --- a/src/script/cpp_api/s_server.h +++ b/src/script/cpp_api/s_server.h @@ -43,7 +43,8 @@ public: /* auth */ bool getAuth(const std::string &playername, std::string *dst_password, - std::set<std::string> *dst_privs); + std::set<std::string> *dst_privs, + s64 *dst_last_login = nullptr); void createAuth(const std::string &playername, const std::string &password); bool setPassword(const std::string &playername, |