summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-09 15:06:52 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-09 15:06:52 +0200
commit18d9adff0fd2ea811dbbf17814a4ba5e36ed2da4 (patch)
treed31efd620705750538072c53849c8116043a480a /src
parent76ed8299e9b9158cbb1cfa487effc6448f5b2268 (diff)
core_whowas Store the nickname in WhoWas::Nick
Diffstat (limited to 'src')
-rw-r--r--src/coremods/core_whowas.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/coremods/core_whowas.cpp b/src/coremods/core_whowas.cpp
index 4308195ec..53b25eb7c 100644
--- a/src/coremods/core_whowas.cpp
+++ b/src/coremods/core_whowas.cpp
@@ -104,7 +104,7 @@ void CommandWhowas::AddToWhoWas(User* user)
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;
@@ -209,8 +209,9 @@ WhoWasGroup::WhoWasGroup(User* user) : host(user->host), dhost(user->dhost), ide
{
}
-WhoWas::Nick::Nick()
+WhoWas::Nick::Nick(const irc::string& nickname)
: addtime(ServerInstance->Time())
+ , nick(nickname)
{
}