summaryrefslogtreecommitdiffstats
path: root/src/ClientHandle.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-09-25 15:55:03 +0200
committerGitHub <noreply@github.com>2016-09-25 15:55:03 +0200
commit7fdcba657dd02b7999076ddb3046b95727f62aff (patch)
tree2867c0814251c68764cae34745447d2904a2c0b3 /src/ClientHandle.cpp
parentInfoReg: Don't fail if there are no commands to register. (diff)
parentFixed cCompositeChat's constructor LuaAPI bindings. (diff)
downloadcuberite-7fdcba657dd02b7999076ddb3046b95727f62aff.tar
cuberite-7fdcba657dd02b7999076ddb3046b95727f62aff.tar.gz
cuberite-7fdcba657dd02b7999076ddb3046b95727f62aff.tar.bz2
cuberite-7fdcba657dd02b7999076ddb3046b95727f62aff.tar.lz
cuberite-7fdcba657dd02b7999076ddb3046b95727f62aff.tar.xz
cuberite-7fdcba657dd02b7999076ddb3046b95727f62aff.tar.zst
cuberite-7fdcba657dd02b7999076ddb3046b95727f62aff.zip
Diffstat (limited to 'src/ClientHandle.cpp')
-rw-r--r--src/ClientHandle.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp
index 303583769..21947af13 100644
--- a/src/ClientHandle.cpp
+++ b/src/ClientHandle.cpp
@@ -213,7 +213,7 @@ AString cClientHandle::FormatChatPrefix(bool ShouldAppendChatPrefixes, AString a
-AString cClientHandle::FormatMessageType(bool ShouldAppendChatPrefixes, eMessageType a_ChatPrefix, const AString &a_AdditionalData)
+AString cClientHandle::FormatMessageType(bool ShouldAppendChatPrefixes, eMessageType a_ChatPrefix, const AString & a_AdditionalData)
{
switch (a_ChatPrefix)
{
@@ -237,11 +237,9 @@ AString cClientHandle::FormatMessageType(bool ShouldAppendChatPrefixes, eMessage
return Printf("%s: %s", a_AdditionalData.c_str(), cChatColor::LightBlue);
}
}
+ case mtMaxPlusOne: break;
}
- ASSERT(!"Unhandled chat prefix type!");
- #ifndef __clang__
- return "";
- #endif
+ return "";
}