diff options
author | Adam <Adam@anope.org> | 2014-12-10 02:09:51 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-12-10 02:09:51 -0500 |
commit | 50acad5ce451b44b469890fe46ce14c7ffd031ca (patch) | |
tree | 231101b9e475dacd58b4d03d1a69df9fe7a82f28 /modules/m_proxyscan.cpp | |
parent | 3e5a5e1c669f6027b897f7358d45f92e1552f746 (diff) |
Unconst these config Get<Anope::string> calls as it makes no sense
Diffstat (limited to 'modules/m_proxyscan.cpp')
-rw-r--r-- | modules/m_proxyscan.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/m_proxyscan.cpp b/modules/m_proxyscan.cpp index 782ae0d08..c8f73b403 100644 --- a/modules/m_proxyscan.cpp +++ b/modules/m_proxyscan.cpp @@ -255,7 +255,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<Anope::string>("target_ip"); if (s_target_ip.empty()) throw ConfigException(this->name + " target_ip may not be empty"); @@ -263,7 +263,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<Anope::string>("listen_ip"); if (s_listen_ip.empty()) throw ConfigException(this->name + " listen_ip may not be empty"); @@ -275,12 +275,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<Anope::string>("connect_notice"); + this->con_source = config->Get<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<Anope::string>("networkname") + " proxy check"; delete this->listener; this->listener = NULL; try @@ -299,7 +299,7 @@ class ModuleProxyScan : public Module ProxyCheck p; Anope::string token; - commasepstream sep(block->Get<const Anope::string>("type")); + commasepstream sep(block->Get<Anope::string>("type")); while (sep.GetToken(token)) { if (!token.equals_ci("HTTP") && !token.equals_ci("SOCKS5")) @@ -309,7 +309,7 @@ class ModuleProxyScan : public Module if (p.types.empty()) continue; - commasepstream sep2(block->Get<const Anope::string>("port")); + commasepstream sep2(block->Get<Anope::string>("port")); while (sep2.GetToken(token)) { try @@ -323,7 +323,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<Anope::string>("reason"); if (p.reason.empty()) continue; |