From 49ff1d2ea8af6bf0e89fcab83522e3c55625b620 Mon Sep 17 00:00:00 2001 From: red-001 Date: Sun, 21 Jan 2018 17:27:27 +0000 Subject: [CSM] Remove `on_connect` callback (#6941) Fixes #6939 --- src/script/cpp_api/s_client.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/script/cpp_api/s_client.cpp') diff --git a/src/script/cpp_api/s_client.cpp b/src/script/cpp_api/s_client.cpp index c6f7a8e19..457dabfa7 100644 --- a/src/script/cpp_api/s_client.cpp +++ b/src/script/cpp_api/s_client.cpp @@ -36,17 +36,6 @@ void ScriptApiClient::on_shutdown() runCallbacks(0, RUN_CALLBACKS_MODE_FIRST); } -void ScriptApiClient::on_connect() -{ - SCRIPTAPI_PRECHECKHEADER - - // get registered connect hooks - lua_getglobal(L, "core"); - lua_getfield(L, -1, "registered_on_connect"); - // Call callback - runCallbacks(0, RUN_CALLBACKS_MODE_FIRST); -} - bool ScriptApiClient::on_sending_message(const std::string &message) { SCRIPTAPI_PRECHECKHEADER -- cgit v1.2.3