diff options
| author | Sadie Powell <sadie@witchery.services> | 2022-01-04 12:28:55 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2022-01-04 12:28:55 +0000 |
| commit | 106750db77be01c7b2d277a12d9b80de15cb8fbb (patch) | |
| tree | 87df7f8b5966ca704f20ee7ab6a79b45ed2e95a2 /modules/webcpanel/pages/chanserv | |
| parent | 7d1047490e4380c4f02900b711c66055d29fb387 (diff) | |
Replace all uses of push_back with emplace_back.
Diffstat (limited to 'modules/webcpanel/pages/chanserv')
| -rw-r--r-- | modules/webcpanel/pages/chanserv/access.cpp | 8 | ||||
| -rw-r--r-- | modules/webcpanel/pages/chanserv/akick.cpp | 4 | ||||
| -rw-r--r-- | modules/webcpanel/pages/chanserv/modes.cpp | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/modules/webcpanel/pages/chanserv/access.cpp b/modules/webcpanel/pages/chanserv/access.cpp index 647009a08..5da811b4b 100644 --- a/modules/webcpanel/pages/chanserv/access.cpp +++ b/modules/webcpanel/pages/chanserv/access.cpp @@ -52,7 +52,7 @@ bool WebCPanel::ChanServ::Access::OnRequest(HTTPProvider *server, const Anope::s { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("DEL"); + params.emplace_back("DEL"); params.push_back(message.get_data["mask"]); WebPanel::RunCommand(client, na->nc->display, na->nc, "ChanServ", "chanserv/access", params, replacements); @@ -65,7 +65,7 @@ bool WebCPanel::ChanServ::Access::OnRequest(HTTPProvider *server, const Anope::s { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("ADD"); + params.emplace_back("ADD"); params.push_back(message.post_data["mask"]); params.push_back(message.post_data["access"]); @@ -75,7 +75,7 @@ bool WebCPanel::ChanServ::Access::OnRequest(HTTPProvider *server, const Anope::s { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("ADD"); + params.emplace_back("ADD"); params.push_back(message.post_data["mask"]); WebPanel::RunCommandWithName(client, na->nc, "ChanServ", "chanserv/xop", message.post_data["access"], params, replacements); @@ -84,7 +84,7 @@ bool WebCPanel::ChanServ::Access::OnRequest(HTTPProvider *server, const Anope::s { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("MODIFY"); + params.emplace_back("MODIFY"); params.push_back(message.post_data["mask"]); params.push_back(message.post_data["access"]); diff --git a/modules/webcpanel/pages/chanserv/akick.cpp b/modules/webcpanel/pages/chanserv/akick.cpp index 6bd31bb4b..fbb2a06c1 100644 --- a/modules/webcpanel/pages/chanserv/akick.cpp +++ b/modules/webcpanel/pages/chanserv/akick.cpp @@ -50,7 +50,7 @@ bool WebCPanel::ChanServ::Akick::OnRequest(HTTPProvider *server, const Anope::st { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("DEL"); + params.emplace_back("DEL"); params.push_back(message.get_data["mask"]); WebPanel::RunCommand(client, na->nc->display, na->nc, "ChanServ", "chanserv/akick", params, replacements); @@ -59,7 +59,7 @@ bool WebCPanel::ChanServ::Akick::OnRequest(HTTPProvider *server, const Anope::st { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("ADD"); + params.emplace_back("ADD"); params.push_back(message.post_data["mask"]); if (message.post_data["reason"].empty() == false) params.push_back(message.post_data["reason"]); diff --git a/modules/webcpanel/pages/chanserv/modes.cpp b/modules/webcpanel/pages/chanserv/modes.cpp index d0d86a7a1..ffc6bc9a6 100644 --- a/modules/webcpanel/pages/chanserv/modes.cpp +++ b/modules/webcpanel/pages/chanserv/modes.cpp @@ -79,7 +79,7 @@ bool WebCPanel::ChanServ::Modes::OnRequest(HTTPProvider *server, const Anope::st { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("SET"); + params.emplace_back("SET"); params.push_back("-" + Anope::string(cm->mchar)); params.push_back(message.get_data["mask"]); WebPanel::RunCommand(client, na->nc->display, na->nc, "ChanServ", "chanserv/mode", params, replacements); @@ -88,7 +88,7 @@ bool WebCPanel::ChanServ::Modes::OnRequest(HTTPProvider *server, const Anope::st { std::vector<Anope::string> params; params.push_back(ci->name); - params.push_back("SET"); + params.emplace_back("SET"); params.push_back("+" + Anope::string(cm->mchar)); params.push_back(message.post_data["mask"]); WebPanel::RunCommand(client, na->nc->display, na->nc, "ChanServ", "chanserv/mode", params, replacements); |
