summaryrefslogtreecommitdiff
path: root/modules/extra/m_proxyscan.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-05 21:05:43 -0400
committerAdam <Adam@anope.org>2013-05-05 21:05:43 -0400
commit5b3f81ea78f7a8ab69ff94cbf2bbf07f5966682e (patch)
tree3536557fea79ffd77bb5a885465e579eeeafb8ff /modules/extra/m_proxyscan.cpp
parent3e8752fe665c3cdf683f2b5fa271231fb3a624df (diff)
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' {} \;
Diffstat (limited to 'modules/extra/m_proxyscan.cpp')
-rw-r--r--modules/extra/m_proxyscan.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/extra/m_proxyscan.cpp b/modules/extra/m_proxyscan.cpp
index c77f0f9cd..075f9067e 100644
--- a/modules/extra/m_proxyscan.cpp
+++ b/modules/extra/m_proxyscan.cpp
@@ -257,7 +257,7 @@ class ModuleProxyScan : public Module
{
Configuration::Block *config = Config->GetModule(this);
- Anope::string s_target_ip = config->Get<const Anope::string &>("target_ip");
+ Anope::string s_target_ip = config->Get<const Anope::string>("target_ip");
if (s_target_ip.empty())
throw ConfigException(this->name + " target_ip may not be empty");
@@ -265,7 +265,7 @@ class ModuleProxyScan : public Module
if (s_target_port <= 0)
throw ConfigException(this->name + " target_port may not be empty and must be a positive number");
- Anope::string s_listen_ip = config->Get<const Anope::string &>("listen_ip");
+ Anope::string s_listen_ip = config->Get<const Anope::string>("listen_ip");
if (s_listen_ip.empty())
throw ConfigException(this->name + " listen_ip may not be empty");
@@ -277,12 +277,12 @@ class ModuleProxyScan : public Module
target_port = s_target_port;
this->listen_ip = s_listen_ip;
this->listen_port = s_listen_port;
- this->con_notice = config->Get<const Anope::string &>("connect_notice");
- this->con_source = config->Get<const Anope::string &>("connect_source");
+ this->con_notice = config->Get<const Anope::string>("connect_notice");
+ this->con_source = config->Get<const Anope::string>("connect_source");
add_to_akill = config->Get<bool>("add_to_akill", "true");
this->connectionTimeout.SetSecs(config->Get<time_t>("timeout", "5s"));
- ProxyCheckString = Config->GetBlock("networkinfo")->Get<const Anope::string &>("networkname") + " proxy check";
+ ProxyCheckString = Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname") + " proxy check";
delete this->listener;
this->listener = NULL;
try
@@ -301,7 +301,7 @@ class ModuleProxyScan : public Module
ProxyCheck p;
Anope::string token;
- commasepstream sep(block->Get<const Anope::string &>("type"));
+ commasepstream sep(block->Get<const Anope::string>("type"));
while (sep.GetToken(token))
{
if (!token.equals_ci("HTTP") && !token.equals_ci("SOCKS5"))
@@ -311,7 +311,7 @@ class ModuleProxyScan : public Module
if (p.types.empty())
continue;
- commasepstream sep2(block->Get<const Anope::string &>("port"));
+ commasepstream sep2(block->Get<const Anope::string>("port"));
while (sep2.GetToken(token))
{
try
@@ -325,7 +325,7 @@ class ModuleProxyScan : public Module
continue;
p.duration = block->Get<time_t>("time", "4h");
- p.reason = block->Get<const Anope::string &>("reason");
+ p.reason = block->Get<const Anope::string>("reason");
if (p.reason.empty())
continue;