From 44495ea719b98aca341b9082521d0d4ee51405c8 Mon Sep 17 00:00:00 2001 From: DS Date: Fri, 9 Jun 2017 15:48:04 +0200 Subject: CSM: Fix documentation error for register_on_*_chat_messages (#5917) --- src/script/cpp_api/s_client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3