X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fbancache.cpp;h=13e4dc7c708266547c12be9d519b7d6d868bc390;hb=e0412d5161891c04faf2050cc02e8a9cffdda8a4;hp=a49454381d24d9105811550798530de1c5980924;hpb=01de0a19ad49f71f7d2a4b9fbcb80c0713a90d7d;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/bancache.cpp b/src/bancache.cpp index a49454381..13e4dc7c7 100644 --- a/src/bancache.cpp +++ b/src/bancache.cpp @@ -19,7 +19,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) {