summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authortycho <work.tycho@gmail.com>2015-10-03 23:38:52 +0200
committertycho <work.tycho@gmail.com>2015-12-18 19:14:34 +0100
commit939ebbee58152b95048dd7410879e2e73c997776 (patch)
tree53d3ec752486299525c22f3750a1813f0e7032b0 /src/ClientHandle.cpp
parentBroken (diff)
downloadcuberite-939ebbee58152b95048dd7410879e2e73c997776.tar
cuberite-939ebbee58152b95048dd7410879e2e73c997776.tar.gz
cuberite-939ebbee58152b95048dd7410879e2e73c997776.tar.bz2
cuberite-939ebbee58152b95048dd7410879e2e73c997776.tar.lz
cuberite-939ebbee58152b95048dd7410879e2e73c997776.tar.xz
cuberite-939ebbee58152b95048dd7410879e2e73c997776.tar.zst
cuberite-939ebbee58152b95048dd7410879e2e73c997776.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 253593d14..c25cbdf11 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -59,7 +59,7 @@ int cClientHandle::s_ClientCount = 0;
////////////////////////////////////////////////////////////////////////////////
// cClientHandle:
-
+#if 0
cClientHandle::cClientHandle(const AString & a_IPString, int a_ViewDistance) :
m_CurrentViewDistance(a_ViewDistance),
m_RequestedViewDistance(a_ViewDistance),
@@ -98,7 +98,7 @@ cClientHandle::cClientHandle(const AString & a_IPString, int a_ViewDistance) :
LOGD("New ClientHandle created at %p", static_cast<void *>(this));
}
-
+#endif
@@ -2257,7 +2257,7 @@ void cClientHandle::SendDisconnect(const AString & a_Reason)
if (!m_HasSentDC)
{
LOGD("Sending a DC: \"%s\"", StripColorCodes(a_Reason).c_str());
- m_Protocol->SendDisconnect(a_Reason);
+ m_Protocol->SendDisconnect(m_OutgoingData, a_Reason);
m_HasSentDC = true;
}
}