Small optimization for message processing

Avoid creating the map for every message
This commit is contained in:
Alexey Sokolov committed 2024-10-15 13:26:20 +01:00
1 parent 9dcd44a15f
commit b536d0f3c3
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -276,7 +276,7 @@ void CMessage::InitType() {
m_eType = Type::Notice;
}
} else {
std::map<CString, Type> mTypes = {
static std::map<CString, Type> mTypes = {
{"ACCOUNT", Type::Account},
{"AWAY", Type::Away},
{"CAP", Type::Capability},