summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bancache.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bancache.cpp b/src/bancache.cpp
index a49454381..452bd998f 100644
--- a/src/bancache.cpp
+++ b/src/bancache.cpp
@@ -21,6 +21,13 @@
#include "inspircd.h"
#include "bancache.h"
+BanCacheHit::BanCacheHit(const std::string& type, const std::string& reason, time_t seconds)
+ : Type(type)
+ , Reason(reason)
+ , Expiry(ServerInstance->Time() + seconds)
+{
+}
+
BanCacheHit *BanCacheManager::AddHit(const std::string &ip, const std::string &type, const std::string &reason, time_t seconds)
{
BanCacheHit*& b = BanHash[ip];