mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Small optimization for message processing
Avoid creating the map for every message
This commit is contained in:
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user