X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fbase.cpp;h=9c002773b9a406469c7d71f0cf34c6dbbe12876f;hb=2e28b264afa667923b6c17d88ffcb12315309936;hp=4612c4a595131d6dbecac4e0354da05d14d09cc0;hpb=d85ea7eac1580b52981578ea647d0da5b5694f54;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/base.cpp b/src/base.cpp index 4612c4a59..9c002773b 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -2,12 +2,9 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * Written by Craig Edwards, Craig McLure, and others. + * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * See: http://www.inspircd.org/wiki/index.php/Credits + * * This program is free but copyrighted software; see * the file COPYING for details. * @@ -17,17 +14,15 @@ #include "inspircd_config.h" #include "base.h" #include -#include -#include -#include #include "inspircd.h" -#include "modules.h" -#include "helperfuncs.h" const int bitfields[] = {1,2,4,8,16,32,64,128}; const int inverted_bitfields[] = {~1,~2,~4,~8,~16,~32,~64,~128}; -extern time_t TIME; +classbase::classbase() +{ + this->age = time(NULL); +} bool Extensible::Shrink(const std::string &key) { @@ -35,16 +30,7 @@ bool Extensible::Shrink(const std::string &key) * returns the number of elements removed, std::map * is single-associative so this should only be 0 or 1 */ - if(this->Extension_Items.erase(key)) - { - log(DEBUG, "Shrinking object with item %s",key.c_str()); - return true; - } - else - { - log(DEBUG, "Tried to shrink object with item %s but no items removed", key.c_str()); - return false; - } + return this->Extension_Items.erase(key); } void Extensible::GetExtList(std::deque &list)