summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-28 20:37:22 +0200
committermadmaxoft <github@xoft.cz>2014-04-28 20:37:22 +0200
commit8ab8fb344f49c2c4ce857594159e9cdba3336853 (patch)
treec1803291dba0b14c9e998a60ea31ab2508034b6f /src/ClientHandle.cpp
parentFixed missing return value warning in MSVC. (diff)
downloadcuberite-8ab8fb344f49c2c4ce857594159e9cdba3336853.tar
cuberite-8ab8fb344f49c2c4ce857594159e9cdba3336853.tar.gz
cuberite-8ab8fb344f49c2c4ce857594159e9cdba3336853.tar.bz2
cuberite-8ab8fb344f49c2c4ce857594159e9cdba3336853.tar.lz
cuberite-8ab8fb344f49c2c4ce857594159e9cdba3336853.tar.xz
cuberite-8ab8fb344f49c2c4ce857594159e9cdba3336853.tar.zst
cuberite-8ab8fb344f49c2c4ce857594159e9cdba3336853.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index efcc89bab..f3588c253 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -214,13 +214,17 @@ AString cClientHandle::FormatMessageType(bool ShouldAppendChatPrefixes, eMessage
case mtPrivateMessage:
{
if (ShouldAppendChatPrefixes)
+ {
return Printf("%s[MSG: %s] %s%s", cChatColor::LightBlue.c_str(), a_AdditionalData.c_str(), cChatColor::White.c_str(), cChatColor::Italic.c_str());
+ }
else
+ {
return Printf("%s: %s", a_AdditionalData.c_str(), cChatColor::LightBlue.c_str());
+ }
}
}
ASSERT(!"Unhandled chat prefix type!");
- return "";
+ return AString();
}