Small optimization for message processing

Avoid creating the map for every message
This commit is contained in:
Alexey Sokolov
2024-10-15 11:42:15 +01:00
parent 9dcd44a15f
commit b536d0f3c3
2 changed files with 2 additions and 2 deletions

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},