From 4d6433ac3060ca255a4a76a65d656a724a16ba1a Mon Sep 17 00:00:00 2001 From: "cedeel@gmail.com" Date: Sat, 16 Jun 2012 08:53:38 +0000 Subject: Proper kick reasons! git-svn-id: http://mc-server.googlecode.com/svn/trunk@621 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cClientHandle.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source/cClientHandle.cpp') diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 0eb621920..bd02e31c3 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -203,9 +203,12 @@ cClientHandle::~cClientHandle() if (m_Socket.IsValid()) { - cPacket_Disconnect Disconnect; - Disconnect.m_Reason = "Server shut down? Kthnxbai"; - m_Socket.Send(&Disconnect); + if(!m_bKicking) + { + cPacket_Disconnect Disconnect; + Disconnect.m_Reason = "Server shut down? Kthnxbai"; + m_Socket.Send(&Disconnect); + } } if (m_Player != NULL) -- cgit v1.2.3