diff options
| author | Adam <Adam@anope.org> | 2010-09-10 20:31:31 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-09-10 20:31:31 -0400 |
| commit | f00e76d30a86acf0f18bcde5647eedd50de50569 (patch) | |
| tree | 04af81a883ea6e71ec36e35a2822487c7f8192c6 /modules/extra/m_dnsbl.cpp | |
| parent | 9eb7562bee7f2a52cf91b0ab0ebc10351f2a46f2 (diff) | |
Added Anope::CurTime to keep us from calling time() everywhere
Diffstat (limited to 'modules/extra/m_dnsbl.cpp')
| -rw-r--r-- | modules/extra/m_dnsbl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp index ac95c5e30..a72e8ac3b 100644 --- a/modules/extra/m_dnsbl.cpp +++ b/modules/extra/m_dnsbl.cpp @@ -32,7 +32,7 @@ class DNSBLResolver : public DNSRequest reason = reason.replace_all_ci("%i", user->ip.addr()); reason = reason.replace_all_ci("%h", user->host); - XLine *x = SGLine->Add(NULL, NULL, Anope::string("*@") + user->host, time(NULL) + this->blacklist.bantime, reason); + XLine *x = SGLine->Add(NULL, NULL, Anope::string("*@") + user->host, Anope::CurTime + this->blacklist.bantime, reason); if (x) { static Command command_akill("AKILL", 0); |
