]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/bancache.h
CullList -> CullItem *
[user/henk/code/inspircd.git] / include / bancache.h
index 75d1a67b5b765e93a748c6a6de88a495e764cf21..d69306d7acd8c48d8b4a48c55a5991bf6121602f 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
+ *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
  * See: http://www.inspircd.org/wiki/index.php/Credits
  *
  * This program is free but copyrighted software; see
@@ -34,6 +34,16 @@ class CoreExport BanCacheHit : public classbase
                this->IP = ip;
                this->Expiry = time(NULL) + 60; // XXX changeme
        }
+
+       // overridden to allow custom time
+       BanCacheHit(InspIRCd *Instance, 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;
+               this->Expiry = time(NULL) + seconds;
+       }
 };
 
 // must be defined after class BanCacheHit.