core_whowas Store time added in WhoWas::Nick

This commit is contained in:
Attila Molnar 2014-07-09 15:03:21 +02:00
parent 3a67168036
commit 76ed8299e9
2 changed files with 13 additions and 0 deletions

View File

@ -40,6 +40,14 @@ namespace WhoWas
*/
whowas_set entries;
/** Time this nick was added to the database
*/
const time_t addtime;
/** Constructor to initialize fields
*/
Nick();
/** Destructor, deallocates all elements in the entries container
*/
~Nick();

View File

@ -209,6 +209,11 @@ WhoWasGroup::WhoWasGroup(User* user) : host(user->host), dhost(user->dhost), ide
{
}
WhoWas::Nick::Nick()
: addtime(ServerInstance->Time())
{
}
WhoWas::Nick::~Nick()
{
stdalgo::delete_all(entries);