aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2017-06-09 15:48:04 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-06-09 15:48:04 +0200
commit44495ea719b98aca341b9082521d0d4ee51405c8 (patch)
tree450c62d0435642a4a4bb1c7ac09c33ed69b8679a /src
parent312ca0382b864e6cdc20e308c33558869527a8ff (diff)
downloadminetest-44495ea719b98aca341b9082521d0d4ee51405c8.tar.gz
minetest-44495ea719b98aca341b9082521d0d4ee51405c8.tar.bz2
minetest-44495ea719b98aca341b9082521d0d4ee51405c8.zip
CSM: Fix documentation error for register_on_*_chat_messages (#5917)
Diffstat (limited to 'src')
-rw-r--r--src/script/cpp_api/s_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp
index 55d309fda..b2dcc60c4 100644
--- a/src/script/cpp_api/s_client.cpp
+++ b/src/script/cpp_api/s_client.cpp
@@ -53,7 +53,7 @@ bool ScriptApiClient::on_sending_message(const std::string &message)
// Get core.registered_on_chat_messages
lua_getglobal(L, "core");
- lua_getfield(L, -1, "registered_on_sending_chat_messages");
+ lua_getfield(L, -1, "registered_on_sending_chat_message");
// Call callbacks
lua_pushstring(L, message.c_str());
runCallbacks(1, RUN_CALLBACKS_MODE_OR_SC);
@@ -67,7 +67,7 @@ bool ScriptApiClient::on_receiving_message(const std::string &message)
// Get core.registered_on_chat_messages
lua_getglobal(L, "core");
- lua_getfield(L, -1, "registered_on_receiving_chat_messages");
+ lua_getfield(L, -1, "registered_on_receiving_chat_message");
// Call callbacks
lua_pushstring(L, message.c_str());
runCallbacks(1, RUN_CALLBACKS_MODE_OR_SC);