summaryrefslogtreecommitdiff
path: root/include/bancache.h
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 14:13:13 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-26 14:13:13 +0000
commit6d03943426dcce76ba66567a9b18425a5ebb4c0c (patch)
treebedffa6d2a65a9ef556405224a6d7a181c8a1ba5 /include/bancache.h
parent810c662c9b55908101ca085293c52c3239ef22d1 (diff)
Remove InspIRCd* parameters and fields
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/bancache.h')
-rw-r--r--include/bancache.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/bancache.h b/include/bancache.h
index 1d56decc1..c9c469e4f 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -23,8 +23,6 @@
*/
class CoreExport BanCacheHit : public classbase
{
- private:
- InspIRCd *ServerInstance;
public:
/** Type of cached ban
*/
@@ -39,9 +37,8 @@ class CoreExport BanCacheHit : public classbase
*/
time_t Expiry;
- BanCacheHit(InspIRCd *Instance, const std::string &ip, const std::string &type, const std::string &reason)
+ BanCacheHit(const std::string &ip, const std::string &type, const std::string &reason)
{
- ServerInstance = Instance;
this->Type = type;
this->Reason = reason;
this->IP = ip;
@@ -49,9 +46,8 @@ class CoreExport BanCacheHit : public classbase
}
// overridden to allow custom time
- BanCacheHit(InspIRCd *Instance, const std::string &ip, const std::string &type, const std::string &reason, time_t seconds)
+ BanCacheHit(const std::string &ip, const std::string &type, const std::string &reason, time_t seconds)
{
- ServerInstance = Instance;
this->Type = type;
this->Reason = reason;
this->IP = ip;
@@ -74,7 +70,6 @@ class CoreExport BanCacheManager : public classbase
{
private:
BanCacheHash* BanHash;
- InspIRCd* ServerInstance;
public:
/** Creates and adds a Ban Cache item.
@@ -95,9 +90,8 @@ class CoreExport BanCacheManager : public classbase
*/
unsigned int RemoveEntries(const std::string &type, bool positive);
- BanCacheManager(InspIRCd *Instance)
+ BanCacheManager()
{
- this->ServerInstance = Instance;
this->BanHash = new BanCacheHash();
}
~BanCacheManager()