*/
const time_t addtime;
+ /** Nickname whose information is stored in this class
+ */
+ const irc::string nick;
+
/** Constructor to initialize fields
*/
- Nick();
+ Nick(const irc::string& nickname);
/** Destructor, deallocates all elements in the entries container
*/
if (ret.second) // If inserted
{
// This nick is new, create a list for it and add the first record to it
- WhoWas::Nick* nick = new WhoWas::Nick;
+ WhoWas::Nick* nick = new WhoWas::Nick(ret.first->first);
nick->entries.push_back(new WhoWasGroup(user));
ret.first->second = nick;
{
}
-WhoWas::Nick::Nick()
+WhoWas::Nick::Nick(const irc::string& nickname)
: addtime(ServerInstance->Time())
+ , nick(nickname)
{
}