diff options
author | ANAND <ClobberXD@gmail.com> | 2019-08-08 21:34:46 +0530 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-08-08 17:04:46 +0100 |
commit | d1c27c7e8037e9f438741ee5f7d3b6bda22d22a0 (patch) | |
tree | fa04794d876ec4c912add9fcca36eff4a18df016 /src/script/cpp_api/s_server.h | |
parent | cc610c74a742511e04dce91b24d09c860ca7fa1b (diff) | |
download | minetest-d1c27c7e8037e9f438741ee5f7d3b6bda22d22a0.tar.gz minetest-d1c27c7e8037e9f438741ee5f7d3b6bda22d22a0.tar.bz2 minetest-d1c27c7e8037e9f438741ee5f7d3b6bda22d22a0.zip |
Allow customizing chat message format (#8529)
Diffstat (limited to 'src/script/cpp_api/s_server.h')
-rw-r--r-- | src/script/cpp_api/s_server.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/script/cpp_api/s_server.h b/src/script/cpp_api/s_server.h index 769939d3f..a4cede84d 100644 --- a/src/script/cpp_api/s_server.h +++ b/src/script/cpp_api/s_server.h @@ -36,14 +36,18 @@ public: // Calls on_shutdown handlers void on_shutdown(); + // Calls core.format_chat_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); + std::string *dst_password, + std::set<std::string> *dst_privs); void createAuth(const std::string &playername, - const std::string &password); + const std::string &password); bool setPassword(const std::string &playername, - const std::string &password); + const std::string &password); private: void getAuthHandler(); void readPrivileges(int index, std::set<std::string> &result); |