mirror of
https://github.com/anope/anope.git
synced 2026-06-28 03:56:38 +02:00
That doesn't work either, just don't use references.
find ./ -name '*.cpp' -exec sed -i 's/Get<const Anope::string\&>/Get<const Anope::string>/g' {} \;
This commit is contained in:
@@ -361,15 +361,15 @@ class HTTPD : public Module
|
||||
Configuration::Block *block = conf->GetBlock("httpd", i);
|
||||
|
||||
|
||||
const Anope::string &hname = block->Get<const Anope::string &>("name", "httpd/main");
|
||||
const Anope::string &hname = block->Get<const Anope::string>("name", "httpd/main");
|
||||
existing.insert(hname);
|
||||
|
||||
Anope::string ip = block->Get<const Anope::string &>("ip");
|
||||
Anope::string ip = block->Get<const Anope::string>("ip");
|
||||
int port = block->Get<int>("port", "8080");
|
||||
int timeout = block->Get<int>("timeout", "30");
|
||||
bool ssl = block->Get<bool>("ssl", "no");
|
||||
Anope::string ext_ip = block->Get<const Anope::string &>("extforward_ip");
|
||||
Anope::string ext_header = block->Get<const Anope::string &>("extforward_header");
|
||||
Anope::string ext_ip = block->Get<const Anope::string>("extforward_ip");
|
||||
Anope::string ext_header = block->Get<const Anope::string>("extforward_header");
|
||||
|
||||
if (ip.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user