aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_server.h
diff options
context:
space:
mode:
authorElias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com>2020-11-04 16:44:42 +0100
committerGitHub <noreply@github.com>2020-11-04 16:44:42 +0100
commit5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (patch)
treec980d614fec4a5495798be3e79e033229062c3cd /src/script/cpp_api/s_server.h
parent28f6a79706b088c37268a59d90878220dc4ef9c7 (diff)
parent3af10766fd2b58b068e970266724d7eb10e9316b (diff)
downloaddragonfireclient-5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc.tar.xz
Merge branch 'master' into master
Diffstat (limited to 'src/script/cpp_api/s_server.h')
-rw-r--r--src/script/cpp_api/s_server.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/script/cpp_api/s_server.h b/src/script/cpp_api/s_server.h
index d8639cba7..db574bd56 100644
--- a/src/script/cpp_api/s_server.h
+++ b/src/script/cpp_api/s_server.h
@@ -22,8 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "cpp_api/s_base.h"
#include <set>
-class ScriptApiServer
- : virtual public ScriptApiBase
+class ScriptApiServer : virtual public ScriptApiBase
{
public:
// Calls on_chat_message handlers
@@ -37,18 +36,15 @@ public:
void on_shutdown();
// Calls core.format_chat_message
- std::string formatChatMessage(const std::string &name,
- const std::string &message);
+ std::string formatChatMessage(
+ const std::string &name, const std::string &message);
/* auth */
- bool getAuth(const std::string &playername,
- std::string *dst_password,
- 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,
- const std::string &password);
+ bool getAuth(const std::string &playername, std::string *dst_password,
+ 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, const std::string &password);
+
private:
void getAuthHandler();
void readPrivileges(int index, std::set<std::string> &result);