summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp1
-rw-r--r--src/script/cpp_api/s_client.cpp11
-rw-r--r--src/script/cpp_api/s_client.h2
3 files changed, 0 insertions, 14 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 90f1c4e01..6416f7715 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1698,7 +1698,6 @@ void Client::afterContentReceived()
if (g_settings->getBool("enable_client_modding")) {
m_script->on_client_ready(m_env.getLocalPlayer());
- m_script->on_connect();
}
text = wgettext("Done!");
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
diff --git a/src/script/cpp_api/s_client.h b/src/script/cpp_api/s_client.h
index 717fbb4cc..402b44e33 100644
--- a/src/script/cpp_api/s_client.h
+++ b/src/script/cpp_api/s_client.h
@@ -40,8 +40,6 @@ public:
// Calls on_shutdown handlers
void on_shutdown();
- void on_connect();
-
// Chat message handlers
bool on_sending_message(const std::string &message);
bool on_receiving_message(const std::string &message);