mirror of
git://git.acid.vegas/anope.git
synced 2024-11-15 12:16:41 +00:00
27 lines
838 B
C++
27 lines
838 B
C++
/*
|
|
* (C) 2003-2022 Anope Team
|
|
* Contact us at team@anope.org
|
|
*
|
|
* Please read COPYING and README for further details.
|
|
*/
|
|
|
|
#include "../../webcpanel.h"
|
|
|
|
WebCPanel::NickServ::Confirm::Confirm(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u)
|
|
{
|
|
}
|
|
|
|
bool WebCPanel::NickServ::Confirm::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply, NickAlias *na, TemplateFileServer::Replacements &replacements)
|
|
{
|
|
|
|
std::vector<Anope::string> params;
|
|
params.push_back(message.post_data["code"]);
|
|
|
|
WebPanel::RunCommand(client, na->nc->display, na->nc, "NickServ", "nickserv/confirm", params, replacements);
|
|
|
|
TemplateFileServer page("nickserv/confirm.html");
|
|
|
|
page.Serve(server, page_name, client, message, reply, replacements);
|
|
return true;
|
|
}
|