summaryrefslogtreecommitdiff
path: root/include/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/base.h')
-rw-r--r--include/base.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/base.h b/include/base.h
index c347aedb3..b0e264bac 100644
--- a/include/base.h
+++ b/include/base.h
@@ -8,12 +8,20 @@
#ifndef __BASE_H__
#define __BASE_H__
-
+
+
+/** The base class for all inspircd classes
+*/
class classbase
{
public:
+ /** Time that the object was instantiated (used for TS calculation etc)
+ */
time_t age;
+ /** Constructor,
+ * Sets the object's time
+ */
classbase() { age = time(NULL); }
~classbase() { }
};