diff options
author | madmaxoft <github@xoft.cz> | 2014-04-28 20:37:22 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-04-28 20:37:22 +0200 |
commit | 8ab8fb344f49c2c4ce857594159e9cdba3336853 (patch) | |
tree | c1803291dba0b14c9e998a60ea31ab2508034b6f | |
parent | Fixed missing return value warning in MSVC. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/ClientHandle.cpp | 6 |
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(); } |