anope- supernets anope source code & configuration |
git clone git://git.acid.vegas/anope.git |
Log | Files | Refs | Archive | README |
info.cpp (834B)
1 /* 2 * (C) 2003-2022 Anope Team 3 * Contact us at team@anope.org 4 * 5 * Please read COPYING and README for further details. 6 */ 7 8 #include "../../webcpanel.h" 9 #include "utils.h" 10 11 WebCPanel::ChanServ::Info::Info(const Anope::string &cat, const Anope::string &u) : WebPanelProtectedPage(cat, u) 12 { 13 } 14 15 bool WebCPanel::ChanServ::Info::OnRequest(HTTPProvider *server, const Anope::string &page_name, HTTPClient *client, HTTPMessage &message, HTTPReply &reply, NickAlias *na, TemplateFileServer::Replacements &replacements) 16 { 17 const Anope::string &chname = message.get_data["channel"]; 18 19 if (!chname.empty()) 20 replacements["ESCAPED_CHANNEL"] = HTTPUtils::URLEncode(chname); 21 22 BuildChanList(na, replacements); 23 24 TemplateFileServer page("chanserv/main.html"); 25 page.Serve(server, page_name, client, message, reply, replacements); 26 return true; 27 }