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_vhost.cpp | |
| parent | Make the reason parameter to PartUser const. (diff) | |
| download | inspircd++-569324feeecea939854e45bbd44495b849fcfd59.tar.gz inspircd++-569324feeecea939854e45bbd44495b849fcfd59.tar.bz2 inspircd++-569324feeecea939854e45bbd44495b849fcfd59.zip | |
Migrate collections from insert to emplace.
Diffstat (limited to 'src/modules/m_vhost.cpp')
| -rw-r--r-- | src/modules/m_vhost.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index d14d3cf41..abb16d16b 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -116,7 +116,7 @@ class ModuleVHost : public Module } CustomVhost vhost(username, pass, hash, mask); - newhosts.insert(std::make_pair(username, vhost)); + newhosts.emplace(username, vhost); } cmd.vhosts.swap(newhosts); |
