diff options
author | Pierre-Adrien Langrognet <upsilon@langg.net> | 2017-05-21 23:06:51 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-05-21 23:06:51 +0200 |
commit | 39f4a2f607d44738d60db84eba4b30e3d7450204 (patch) | |
tree | 63a72301d3c53917b99fe0607f48219372f85b6f /src/script/lua_api/l_client.h | |
parent | ec490abf5889e06c88887e17f1746043de3b10fe (diff) | |
download | hax-minetest-server-39f4a2f607d44738d60db84eba4b30e3d7450204.tar.gz hax-minetest-server-39f4a2f607d44738d60db84eba4b30e3d7450204.zip |
[CSM] Add send_chat_message and run_server_chatcommand API functions (#5747)
* [CSM] Add send_chat_message and run_server_chatcommand API functions
* Add client-side chat message rate limiting
* Limit out chat queue size
* [CSM] Add minetest.clear_out_chat_queue API function and .clear_chat_queue chatcommand
* Last fixes/cleanups before merge
Diffstat (limited to 'src/script/lua_api/l_client.h')
-rw-r--r-- | src/script/lua_api/l_client.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/lua_api/l_client.h b/src/script/lua_api/l_client.h index 09b74addd..fe5780fb1 100644 --- a/src/script/lua_api/l_client.h +++ b/src/script/lua_api/l_client.h @@ -37,6 +37,12 @@ private: // display_chat_message(message) static int l_display_chat_message(lua_State *L); + // send_chat_message(message) + static int l_send_chat_message(lua_State *L); + + // clear_out_chat_queue() + static int l_clear_out_chat_queue(lua_State *L); + // get_player_names() static int l_get_player_names(lua_State *L); |