From 9f27390382f8c341e59731fb4c026c93ef4fde4b Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 13 Jun 2014 15:19:27 +0200 Subject: Move the definition of the BanCacheHit constructor into the source file from the header --- src/bancache.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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]; -- cgit v1.2.3