diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-22 21:08:34 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-06-22 21:08:34 +0200 |
commit | 943dcaea14c7530eecca57af015f1007b3b9630f (patch) | |
tree | 5f6f3c95c67d22810dc349b7831d10a64d89b480 /source/ClientHandle.cpp | |
parent | Added the End height and composition generators. (diff) | |
download | cuberite-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 'source/ClientHandle.cpp')
-rw-r--r-- | source/ClientHandle.cpp | 5 |
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); } |