X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fbancache.cpp;h=0ca2d693f1030f470cbb9ed2f9945ce10ba82d79;hb=6d03943426dcce76ba66567a9b18425a5ebb4c0c;hp=524baaad2e4805471a53ccf1030259c8c4ce8113;hpb=b6dbd6caab62bc2c0d11ce5a45d511611eb9c2ef;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/bancache.cpp b/src/bancache.cpp index 524baaad2..0ca2d693f 100644 --- a/src/bancache.cpp +++ b/src/bancache.cpp @@ -23,7 +23,7 @@ BanCacheHit *BanCacheManager::AddHit(const std::string &ip, const std::string &t if (this->BanHash->find(ip) != this->BanHash->end()) // can't have two cache entries on the same IP, sorry.. return NULL; - b = new BanCacheHit(ServerInstance, ip, type, reason); + b = new BanCacheHit(ip, type, reason); this->BanHash->insert(std::make_pair(ip, b)); return b; @@ -36,7 +36,7 @@ BanCacheHit *BanCacheManager::AddHit(const std::string &ip, const std::string &t if (this->BanHash->find(ip) != this->BanHash->end()) // can't have two cache entries on the same IP, sorry.. return NULL; - b = new BanCacheHit(ServerInstance, ip, type, reason, seconds); + b = new BanCacheHit(ip, type, reason, seconds); this->BanHash->insert(std::make_pair(ip, b)); return b;