aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2017-07-02 20:25:22 +0100
committerparamat <mat.gregory@virginmedia.com>2017-07-15 01:35:18 +0100
commitbdac12761cd92960c3df83c932aa610f2322215f (patch)
tree7ad88805fa39af7d5622965e9152072d03f3cb8a /src/script/lua_api
parenta5c37717ffea387f8aa694f22ccc2f2f449826ac (diff)
downloadminetest-bdac12761cd92960c3df83c932aa610f2322215f.tar.gz
minetest-bdac12761cd92960c3df83c932aa610f2322215f.tar.bz2
minetest-bdac12761cd92960c3df83c932aa610f2322215f.zip
CSM: Revert "[CSM] Add send_chat_message and run_server_chatcommand"
Original PR: #5747. This reverts commit 39f4a2f607d44738d60db84eba4b30e3d7450204.
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_client.cpp19
-rw-r--r--src/script/lua_api/l_client.h6
2 files changed, 0 insertions, 25 deletions
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index 1077d5f2d..0b957a6e2 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -85,23 +85,6 @@ int ModApiClient::l_display_chat_message(lua_State *L)
return 1;
}
-// send_chat_message(message)
-int ModApiClient::l_send_chat_message(lua_State *L)
-{
- if (!lua_isstring(L, 1))
- return 0;
- std::string message = luaL_checkstring(L, 1);
- getClient(L)->sendChatMessage(utf8_to_wide(message));
- return 0;
-}
-
-// clear_out_chat_queue()
-int ModApiClient::l_clear_out_chat_queue(lua_State *L)
-{
- getClient(L)->clearOutChatQueue();
- return 0;
-}
-
// get_player_names()
int ModApiClient::l_get_player_names(lua_State *L)
{
@@ -354,8 +337,6 @@ void ModApiClient::Initialize(lua_State *L, int top)
API_FCT(get_current_modname);
API_FCT(print);
API_FCT(display_chat_message);
- API_FCT(send_chat_message);
- API_FCT(clear_out_chat_queue);
API_FCT(get_player_names);
API_FCT(set_last_run_mod);
API_FCT(get_last_run_mod);
diff --git a/src/script/lua_api/l_client.h b/src/script/lua_api/l_client.h
index 7472915f5..6bb12187f 100644
--- a/src/script/lua_api/l_client.h
+++ b/src/script/lua_api/l_client.h
@@ -37,12 +37,6 @@ 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);