mirror of
https://github.com/anope/anope.git
synced 2026-06-29 04:06: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:
+4
-4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user