summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-13 15:19:27 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-13 15:19:27 +0200
commit9f27390382f8c341e59731fb4c026c93ef4fde4b (patch)
tree95c9703a1846da92db68cfe8ff94cb50deac2f3f /include
parent2269b9740b29bd9e1e3d688740da493589866d17 (diff)
Move the definition of the BanCacheHit constructor into the source file from the header
Diffstat (limited to 'include')
-rw-r--r--include/bancache.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/bancache.h b/include/bancache.h
index e39a26d64..6e19e1ebe 100644
--- a/include/bancache.h
+++ b/include/bancache.h
@@ -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()); }
};