diff options
author | Adam <Adam@anope.org> | 2013-08-23 01:14:00 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-23 01:14:00 -0400 |
commit | 4d1492d444781069883f82ce00b389bb0ecd5099 (patch) | |
tree | 235163615b27ea8449dfb7c33a3f121cc9ea6d6c /modules/extra/webcpanel/pages/index.cpp | |
parent | 154fa25e8fc33c2ce77cb0612c1587cec4f32300 (diff) |
Remove webpanel:ssl configuration option because its dumb
Diffstat (limited to 'modules/extra/webcpanel/pages/index.cpp')
-rw-r--r-- | modules/extra/webcpanel/pages/index.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/extra/webcpanel/pages/index.cpp b/modules/extra/webcpanel/pages/index.cpp index be4bbbc6d..44314afc3 100644 --- a/modules/extra/webcpanel/pages/index.cpp +++ b/modules/extra/webcpanel/pages/index.cpp @@ -21,7 +21,7 @@ class WebpanelRequest : public IdentifyRequest void OnSuccess() anope_override { - if (!client) + if (!client || !server) return; NickAlias *na = NickAlias::Find(this->GetAccount()); if (!na) @@ -58,14 +58,14 @@ class WebpanelRequest : public IdentifyRequest } reply.error = HTTP_FOUND; - reply.headers["Location"] = Anope::string("http") + (use_ssl ? "s" : "") + "://" + message.headers["Host"] + "/nickserv/info"; + reply.headers["Location"] = Anope::string("http") + (server->IsSSL() ? "s" : "") + "://" + message.headers["Host"] + "/nickserv/info"; client->SendReply(&reply); } void OnFail() anope_override { - if (!client) + if (!client || !server) return; replacements["INVALID_LOGIN"] = "Invalid username or password"; TemplateFileServer page("login.html"); |