summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/base.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/base.h b/include/base.h
index d458021f6..ec6e373ba 100644
--- a/include/base.h
+++ b/include/base.h
@@ -25,6 +25,8 @@
typedef void* VoidPointer;
typedef std::map<std::string,char*> ExtensibleStore;
+
+extern time_t TIME;
/** The base class for all inspircd classes
*/
@@ -34,12 +36,13 @@ class classbase
/** Time that the object was instantiated (used for TS calculation etc)
*/
time_t age;
+ static unsigned long id;
/** Constructor,
* Sets the object's time
*/
- classbase() { age = time(NULL); }
- ~classbase() { }
+ classbase() { time = TIME; id++; }
+ ~classbase() { id--; }
};
/** class Extensible is the parent class of many classes such as userrec and chanrec.