summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 09:39:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 09:39:48 +0000
commit9ea40ce2f7f7c5d55bf22e4b39e9903509925f1a (patch)
treee3ffc4a57095055f068a6c12eb077611cc200a08 /src
parent0ba3bb8ade1311bd21c2285dae7aab228a14c650 (diff)
Removal of an extern
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4875 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/base.cpp5
-rw-r--r--src/inspircd.cpp8
2 files changed, 5 insertions, 8 deletions
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();
-}
-