1
0
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:
Adam
2013-05-05 21:05:43 -04:00
parent 3e8752fe66
commit 5b3f81ea78
64 changed files with 260 additions and 266 deletions
+4 -4
View File
@@ -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())
{