diff options
Diffstat (limited to 'modules/m_dnsbl.cpp')
-rw-r--r-- | modules/m_dnsbl.cpp | 8 |
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; } |