aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_cgiirc.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-03-30 19:44:07 +0100
committerGravatar Sadie Powell2021-03-30 19:44:07 +0100
commit49339528112c57de5e52f2e8bbea91bf37c3704a (patch)
tree6e8088af58b4df52958e8a691a6d36386d09df66 /src/modules/m_cgiirc.cpp
parentFix the setter and set time of list modes being lost on netburst. (diff)
Use emplace_back where possible.
Diffstat (limited to 'src/modules/m_cgiirc.cpp')
-rw-r--r--src/modules/m_cgiirc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp
index ad4eb8d4d..494743cd5 100644
--- a/src/modules/m_cgiirc.cpp
+++ b/src/modules/m_cgiirc.cpp
@@ -355,7 +355,7 @@ class ModuleCgiIRC
{
// The IP address should be looked up from the hex IP address.
const std::string newident = tag->getString("newident", "gateway", ServerInstance->IsIdent);
- identhosts.push_back(IdentHost(masks, newident));
+ identhosts.emplace_back(masks, newident);
}
else if (stdalgo::string::equalsci(type, "webirc"))
{
@@ -374,7 +374,7 @@ class ModuleCgiIRC
tag->source.str().c_str());
}
- webirchosts.push_back(WebIRCHost(masks, fingerprint, password, passwordhash));
+ webirchosts.emplace_back(masks, fingerprint, password, passwordhash);
}
else
{