From 9ea40ce2f7f7c5d55bf22e4b39e9903509925f1a Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 11 Aug 2006 09:39:48 +0000 Subject: Removal of an extern git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4875 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/base.h | 4 ++-- src/base.cpp | 5 +++++ src/inspircd.cpp | 8 -------- 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 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(); -} - -- cgit v1.2.3