diff options
-rw-r--r-- | include/commands/cmd_whowas.h | 8 | ||||
-rw-r--r-- | src/coremods/core_whowas.cpp | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h index 2a3fa896c..5993500f6 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -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(); diff --git a/src/coremods/core_whowas.cpp b/src/coremods/core_whowas.cpp index 0a418df3e..4308195ec 100644 --- a/src/coremods/core_whowas.cpp +++ b/src/coremods/core_whowas.cpp @@ -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); |