summaryrefslogtreecommitdiff
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
parent2269b9740b29bd9e1e3d688740da493589866d17 (diff)
Move the definition of the BanCacheHit constructor into the source file from the header
-rw-r--r--include/bancache.h5
-rw-r--r--src/bancache.cpp7
2 files changed, 8 insertions, 4 deletions
diff --git a/include/bancache.h b/include/bancache.h
index e39a26d64..6e19e1ebe 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -40,10 +40,7 @@ class CoreExport BanCacheHit
*/
time_t Expiry;
- BanCacheHit(const std::string &type, const std::string &reason, time_t seconds)
- : Type(type), Reason(reason), Expiry(ServerInstance->Time() + seconds)
- {
- }
+ BanCacheHit(const std::string& type, const std::string& reason, time_t seconds);
bool IsPositive() const { return (!Reason.empty()); }
};
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];