summaryrefslogtreecommitdiff
path: root/modules/m_dnsbl.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/m_dnsbl.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/m_dnsbl.cpp')
-rw-r--r--modules/m_dnsbl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/m_dnsbl.cpp b/modules/m_dnsbl.cpp
index 9e30c49ce..b6ebcfb55 100644
--- a/modules/m_dnsbl.cpp
+++ b/modules/m_dnsbl.cpp
@@ -63,7 +63,7 @@ class DNSBLResolver : public Request
reason = reason.replace_all_cs("%h", user->host);
reason = reason.replace_all_cs("%i", user->ip);
reason = reason.replace_all_cs("%r", record_reason);
- reason = reason.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string &>("networkname"));
+ reason = reason.replace_all_cs("%N", Config->GetBlock("networkinfo")->Get<const Anope::string>("networkname"));
Log(OperServ) << "DNSBL: " << user->GetMask() << " (" << user->ip << ") appears in " << this->blacklist.name;
XLine *x = new XLine("*@" + user->ip, OperServ ? OperServ->nick : "m_dnsbl", Anope::CurTime + this->blacklist.bantime, reason, XLineManager::GenerateUID());
@@ -107,15 +107,15 @@ class ModuleDNSBL : public Module
{
Configuration::Block *bl = conf->GetBlock("blacklist", i);
- Anope::string bname = bl->Get<const Anope::string &>("name");
+ Anope::string bname = bl->Get<const Anope::string>("name");
if (bname.empty())
continue;
time_t bantime = bl->Get<time_t>("time", "4h");
- Anope::string reason = bl->Get<const Anope::string &>("reason");
+ Anope::string reason = bl->Get<const Anope::string>("reason");
std::map<int, Anope::string> replies;
for (int j = 0; j < 256; ++j)
{
- Anope::string k = bl->Get<const Anope::string &>(stringify(j));
+ Anope::string k = bl->Get<const Anope::string>(stringify(j));
if (!k.empty())
replies[j] = k;
}