diff options
| author | 2021-04-18 04:37:51 +0100 | |
|---|---|---|
| committer | 2021-04-18 04:58:28 +0100 | |
| commit | 569324feeecea939854e45bbd44495b849fcfd59 (patch) | |
| tree | 38008340f746112ab17ebb8368f090aeac10aabd /src/modules/m_alias.cpp | |
| parent | Make the reason parameter to PartUser const. (diff) | |
Migrate collections from insert to emplace.
Diffstat (limited to 'src/modules/m_alias.cpp')
| -rw-r--r-- | src/modules/m_alias.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 1a289a133..e04d3a3de 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -103,7 +103,7 @@ class ModuleAlias : public Module a.StripColor = tag->getBool("stripcolor"); std::transform(a.AliasedCommand.begin(), a.AliasedCommand.end(), a.AliasedCommand.begin(), ::toupper); - newAliases.insert(std::make_pair(a.AliasedCommand, a)); + newAliases.emplace(a.AliasedCommand, a); } auto fantasy = ServerInstance->Config->ConfValue("fantasy"); |
