diff options
| author | 2014-03-03 15:07:17 +0100 | |
|---|---|---|
| committer | 2014-03-03 15:07:17 +0100 | |
| commit | b1173ca66a3a3dc3d1ae0b3f305e1b37e3d5c982 (patch) | |
| tree | 66fd0557af47b1e6282f942830766f6a96ec87b6 /src/modules/m_spanningtree/main.cpp | |
| parent | Remove REG_ALL checks from User::SharesChannelWith() (diff) | |
Update nick timestamps in User::ChangeNick(), pass the new TS in a parameter
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 1782f7e2a..43a3ec2cc 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -583,14 +583,9 @@ void ModuleSpanningTree::OnUserPostNick(User* user, const std::string &oldnick) { if (IS_LOCAL(user)) { + // The nick TS is updated by the core, we don't do it CmdBuilder params(user, "NICK"); params.push_back(user->nick); - - /** IMPORTANT: We don't update the TS if the oldnick is just a case change of the newnick! - */ - if ((irc::string(user->nick.c_str()) != assign(oldnick)) && (!this->KeepNickTS)) - user->age = ServerInstance->Time(); - params.push_back(ConvToStr(user->age)); params.Broadcast(); this->KeepNickTS = false; |
