From 97dc5a5365617e4b1d8e5153755b3f22f6bd2abe Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 8 Jul 2013 13:00:09 +0000 Subject: [PATCH] Color codes are stripped from the DC message git-svn-id: http://mc-server.googlecode.com/svn/trunk@1670 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ClientHandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index 4afa2fdbc..52f3b92ed 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -1470,7 +1470,7 @@ void cClientHandle::SendDisconnect(const AString & a_Reason) { if (!m_HasSentDC) { - LOGD("Sending a DC: \"%s\"", a_Reason.c_str()); + LOGD("Sending a DC: \"%s\"", StripColorCodes(a_Reason).c_str()); m_Protocol->SendDisconnect(a_Reason); m_HasSentDC = true; }