summaryrefslogtreecommitdiff
path: root/src/bancache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bancache.cpp')
-rw-r--r--src/bancache.cpp4
1 files changed, 2 insertions, 2 deletions
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;