]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/users.cpp
Create the core_xline module
[user/henk/code/inspircd.git] / src / users.cpp
index a5737c9ce4dd3e4be06106d0c49e6195229d53d0..cf1887ce95d290a0f16d71ae772ae6baf091a0d1 100644 (file)
@@ -613,7 +613,7 @@ void User::InvalidateCache()
        cached_fullrealhost.clear();
 }
 
-bool User::ChangeNick(const std::string& newnick, bool force)
+bool User::ChangeNick(const std::string& newnick, bool force, time_t newts)
 {
        if (quitting)
        {
@@ -637,6 +637,7 @@ bool User::ChangeNick(const std::string& newnick, bool force)
        {
                // case change, don't need to check Q:lines and such
                // and, if it's identical including case, we can leave right now
+               // We also don't update the nick TS if it's a case change, either
                if (newnick == nick)
                        return true;
        }
@@ -710,6 +711,8 @@ bool User::ChangeNick(const std::string& newnick, bool force)
                                return false;
                        }
                }
+
+               age = newts ? newts : ServerInstance->Time();
        }
 
        if (this->registered == REG_ALL)