4
mirror of git://git.acid.vegas/anope.git synced 2024-11-15 04:06:42 +00:00
anope/modules/webcpanel/pages/register.cpp

24 lines
630 B
C++
Raw Normal View History

2023-05-07 17:44:21 +00:00
/*
* (C) 2003-2022 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
*/
#include "../webcpanel.h"
bool WebCPanel::Register::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply)
{
TemplateFileServer::Replacements replacements;
replacements["TITLE"] = page_title;
if (Config->GetModule("nickserv")->Get<bool>("forceemail", "yes"))
replacements["FORCE_EMAIL"] = "yes";
TemplateFileServer page("register.html");
page.Serve(server, page_name, client, message, reply, replacements);
return true;
}