mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 18:49:03 -04:00
Move the definition of the BanCacheHit constructor into the source file from the header
This commit is contained in:
parent
2269b9740b
commit
9f27390382
@ -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()); }
|
||||
};
|
||||
|
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user