mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
core_whowas Store time added in WhoWas::Nick
This commit is contained in:
parent
3a67168036
commit
76ed8299e9
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user