summaryrefslogtreecommitdiffstats
path: root/source/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-22 21:08:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-22 21:08:34 +0200
commit943dcaea14c7530eecca57af015f1007b3b9630f (patch)
tree5f6f3c95c67d22810dc349b7831d10a64d89b480 /source/ClientHandle.cpp
parentAdded the End height and composition generators. (diff)
downloadcuberite-943dcaea14c7530eecca57af015f1007b3b9630f.tar
cuberite-943dcaea14c7530eecca57af015f1007b3b9630f.tar.gz
cuberite-943dcaea14c7530eecca57af015f1007b3b9630f.tar.bz2
cuberite-943dcaea14c7530eecca57af015f1007b3b9630f.tar.lz
cuberite-943dcaea14c7530eecca57af015f1007b3b9630f.tar.xz
cuberite-943dcaea14c7530eecca57af015f1007b3b9630f.tar.zst
cuberite-943dcaea14c7530eecca57af015f1007b3b9630f.zip
Diffstat (limited to '')
-rw-r--r--source/ClientHandle.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp
index 23a34d7bc..e1ade39e7 100644
--- a/source/ClientHandle.cpp
+++ b/source/ClientHandle.cpp
@@ -898,14 +898,15 @@ void cClientHandle::HandlePlaceBlock(int a_BlockX, int a_BlockY, int a_BlockZ, c
void cClientHandle::HandleChat(const AString & a_Message)
{
- if (!cRoot::Get()->GetServer()->Command(*this, a_Message))
+ AString Message(a_Message);
+ if (!cRoot::Get()->GetServer()->Command(*this, Message))
{
AString Msg;
Printf(Msg, "<%s%s%s> %s",
m_Player->GetColor().c_str(),
m_Player->GetName().c_str(),
cChatColor::White.c_str(),
- a_Message.c_str()
+ Message.c_str()
);
m_Player->GetWorld()->BroadcastChat(Msg);
}