summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp
index 2632d5ac6..4cc176db6 100644
--- a/source/cClientHandle.cpp
+++ b/source/cClientHandle.cpp
@@ -1078,6 +1078,8 @@ void cClientHandle::Tick(float a_Dt)
World->LockEntities();
m_Player->SetGameMode ( World->GetGameMode() ); //set player's gamemode to server's gamemode at login.
+ m_Player->SetIP ( m_pState->Socket.GetIPString() );
+
cRoot::Get()->GetPluginManager()->CallHook( cPluginManager::E_PLUGIN_PLAYER_SPAWN, 1, m_Player );
// Return a server login packet