summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/base.h4
-rw-r--r--src/base.cpp5
-rw-r--r--src/inspircd.cpp8
3 files changed, 7 insertions, 10 deletions
diff --git a/include/base.h b/include/base.h
index 88a4dbf12..f86dc94bc 100644
--- a/include/base.h
+++ b/include/base.h
@@ -26,8 +26,8 @@
typedef void* VoidPointer;
typedef std::map<std::string,char*> ExtensibleStore;
-extern time_t TIME;
-
+class InspIRCd;
+
/** The base class for all inspircd classes
*/
class classbase
diff --git a/src/base.cpp b/src/base.cpp
index 126e5b824..e79d336b7 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -27,6 +27,11 @@
const int bitfields[] = {1,2,4,8,16,32,64,128};
const int inverted_bitfields[] = {~1,~2,~4,~8,~16,~32,~64,~128};
+classbase::classbase()
+{
+ this->age = time(NULL);
+}
+
bool Extensible::Shrink(const std::string &key)
{
/* map::size_type map::erase( const key_type& key );
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 046b19f8c..0b56dad98 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -1042,11 +1042,3 @@ time_t InspIRCd::Time()
return TIME;
}
-classbase::classbase()
-{
- /* This is in here only to make use of ServerInstance
- * without using an ugly extern
- */
- this->age = ServerInstance->Time();
-}
-