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/webcpanel.h | |
| parent | 154fa25e8fc33c2ce77cb0612c1587cec4f32300 (diff) | |
Remove webpanel:ssl configuration option because its dumb
Diffstat (limited to 'modules/extra/webcpanel/webcpanel.h')
| -rw-r--r-- | modules/extra/webcpanel/webcpanel.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/extra/webcpanel/webcpanel.h b/modules/extra/webcpanel/webcpanel.h index 638a7c1c9..5ff971ca3 100644 --- a/modules/extra/webcpanel/webcpanel.h +++ b/modules/extra/webcpanel/webcpanel.h @@ -14,7 +14,6 @@ extern Module *me; extern Anope::string provider_name, template_name, template_base, page_title; -extern bool use_ssl; struct SubSection { @@ -89,7 +88,7 @@ class WebPanelProtectedPage : public WebPanelPage if (!panel || !(na = panel->GetNickFromSession(client, message))) { reply.error = HTTP_FOUND; - reply.headers["Location"] = Anope::string("http") + (use_ssl ? "s" : "") + "://" + message.headers["Host"] + "/"; + reply.headers["Location"] = Anope::string("http") + (provider->IsSSL() ? "s" : "") + "://" + message.headers["Host"] + "/"; return true; // Access denied } |
