mirror of
https://github.com/znc/znc.git
synced 2026-07-28 12:33:33 +02:00
Small optimization for message processing
Avoid creating the map for every message
This commit is contained in:
+1
-1
@@ -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