diff options
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/cpp_api/s_client.cpp | 4 |
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); |