summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-09-27 16:18:31 +0200
committertycho <work.tycho@gmail.com>2015-12-18 19:14:34 +0100
commit50186579737c12f11bea815d5fb8db732c6ff3c6 (patch)
tree7ca89ced1321b2bcff243d16818f93db02ca3b25 /src/ClientHandle.cpp
parentbroken 2 (diff)
downloadcuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.gz
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.bz2
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.lz
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.xz
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.tar.zst
cuberite-50186579737c12f11bea815d5fb8db732c6ff3c6.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index e54b73db3..41b7f1fbc 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -90,7 +90,7 @@ cClientHandle::cClientHandle(const AString & a_IPString, int a_ViewDistance) :
m_LastPlacedSign(0, -1, 0),
m_ProtocolVersion(0)
{
- m_Protocol = new cProtocolRecognizer(this);
+ m_Protocol = new cProtocolRecognizer(GetIPString());
s_ClientCount++; // Not protected by CS because clients are always constructed from the same thread
m_UniqueID = s_ClientCount;
@@ -3002,7 +3002,7 @@ void cClientHandle::PacketError(UInt32 a_PacketType)
SendDisconnect("Protocol error");
}
-
+#endif
@@ -3039,7 +3039,6 @@ void cClientHandle::SetSelf(cClientHandlePtr a_Self)
-
void cClientHandle::OnLinkCreated(cTCPLinkPtr a_Link)
{
m_Link = a_Link;
@@ -3087,7 +3086,6 @@ void cClientHandle::OnError(int a_ErrorCode, const AString & a_ErrorMsg)
}
SocketClosed();
}
-#endif