summaryrefslogtreecommitdiffstats
path: root/src/CompositeChat.cpp
diff options
context:
space:
mode:
authorPeter Bell <peterbell10@live.co.uk>2020-05-15 04:35:43 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2020-05-16 10:39:05 +0200
commit3189a3cbee8eb9d7ded7605776a75f35e5e2f122 (patch)
tree616ed3031baa99e1f34123b645c5b3cb6ed73223 /src/CompositeChat.cpp
parentEnable some more clang-tidy linter checks (#4738) (diff)
downloadcuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar
cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.gz
cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.bz2
cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.lz
cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.xz
cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.tar.zst
cuberite-3189a3cbee8eb9d7ded7605776a75f35e5e2f122.zip
Diffstat (limited to '')
-rw-r--r--src/CompositeChat.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/CompositeChat.cpp b/src/CompositeChat.cpp
index fefc0a60c..08e1973ce 100644
--- a/src/CompositeChat.cpp
+++ b/src/CompositeChat.cpp
@@ -269,24 +269,24 @@ AString cCompositeChat::ExtractText(void) const
-cLogger::eLogLevel cCompositeChat::MessageTypeToLogLevel(eMessageType a_MessageType)
+eLogLevel cCompositeChat::MessageTypeToLogLevel(eMessageType a_MessageType)
{
switch (a_MessageType)
{
- case mtCustom: return cLogger::llRegular;
- case mtFailure: return cLogger::llWarning;
- case mtInformation: return cLogger::llInfo;
- case mtSuccess: return cLogger::llRegular;
- case mtWarning: return cLogger::llWarning;
- case mtFatal: return cLogger::llError;
- case mtDeath: return cLogger::llRegular;
- case mtPrivateMessage: return cLogger::llRegular;
- case mtJoin: return cLogger::llRegular;
- case mtLeave: return cLogger::llRegular;
+ case mtCustom: return eLogLevel::Regular;
+ case mtFailure: return eLogLevel::Warning;
+ case mtInformation: return eLogLevel::Info;
+ case mtSuccess: return eLogLevel::Regular;
+ case mtWarning: return eLogLevel::Warning;
+ case mtFatal: return eLogLevel::Error;
+ case mtDeath: return eLogLevel::Regular;
+ case mtPrivateMessage: return eLogLevel::Regular;
+ case mtJoin: return eLogLevel::Regular;
+ case mtLeave: return eLogLevel::Regular;
case mtMaxPlusOne: break;
}
ASSERT(!"Unhandled MessageType");
- return cLogger::llError;
+ return eLogLevel::Error;
}