summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-13 15:19:27 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-13 15:19:27 +0200
commit9f27390382f8c341e59731fb4c026c93ef4fde4b (patch)
tree95c9703a1846da92db68cfe8ff94cb50deac2f3f /src
parent2269b9740b29bd9e1e3d688740da493589866d17 (diff)
Move the definition of the BanCacheHit constructor into the source file from the header
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];