mirror of
https://github.com/znc/znc.git
synced 2026-06-19 17:45:18 +02:00
Small optimization for message processing
Avoid creating the map for every message
This commit is contained in:
+1
-1
@@ -378,7 +378,7 @@ bool CIRCSock::OnCapabilityMessage(CMessage& Message) {
|
||||
sArgs = Message.GetParam(2);
|
||||
}
|
||||
|
||||
std::map<CString, std::function<void(bool bVal)>> mSupportedCaps = {
|
||||
static std::map<CString, std::function<void(bool bVal)>> mSupportedCaps = {
|
||||
{"multi-prefix", [this](bool bVal) { m_bNamesx = bVal; }},
|
||||
{"userhost-in-names", [this](bool bVal) { m_bUHNames = bVal; }},
|
||||
{"cap-notify", [](bool bVal) {}},
|
||||
|
||||
Reference in New Issue
Block a user