diff options
| author | 2021-03-30 19:44:07 +0100 | |
|---|---|---|
| committer | 2021-03-30 19:44:07 +0100 | |
| commit | 49339528112c57de5e52f2e8bbea91bf37c3704a (patch) | |
| tree | 6e8088af58b4df52958e8a691a6d36386d09df66 /src/modules/m_hostchange.cpp | |
| parent | Fix the setter and set time of list modes being lost on netburst. (diff) | |
Use emplace_back where possible.
Diffstat (limited to 'src/modules/m_hostchange.cpp')
| -rw-r--r-- | src/modules/m_hostchange.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_hostchange.cpp b/src/modules/m_hostchange.cpp index e739dd17a..4e628e638 100644 --- a/src/modules/m_hostchange.cpp +++ b/src/modules/m_hostchange.cpp @@ -154,12 +154,12 @@ private: if (stdalgo::string::equalsci(action, "addaccount")) { // The hostname is in the format [prefix]<account>[suffix]. - rules.push_back(HostRule(HostRule::HCA_ADDACCOUNT, mask, ports, tag->getString("prefix"), tag->getString("suffix"))); + rules.emplace_back(HostRule::HCA_ADDACCOUNT, mask, ports, tag->getString("prefix"), tag->getString("suffix")); } else if (stdalgo::string::equalsci(action, "addnick")) { // The hostname is in the format [prefix]<nick>[suffix]. - rules.push_back(HostRule(HostRule::HCA_ADDNICK, mask, ports, tag->getString("prefix"), tag->getString("suffix"))); + rules.emplace_back(HostRule::HCA_ADDNICK, mask, ports, tag->getString("prefix"), tag->getString("suffix")); } else if (stdalgo::string::equalsci(action, "set")) { @@ -169,7 +169,7 @@ private: throw ModuleException("<hostchange:value> is a mandatory field when using the 'set' action, at " + tag->source.str()); // The hostname is in the format <value>. - rules.push_back(HostRule(mask, value, ports)); + rules.emplace_back(mask, value, ports); continue; } else |
