From 41d131285318dde95aea16291bcca915b2174e30 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 11 Oct 2022 11:12:04 +0100 Subject: Rename User::age to User::nickchanged and fix the docs. --- src/modules/m_watch.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/m_watch.cpp') diff --git a/src/modules/m_watch.cpp b/src/modules/m_watch.cpp index 43331eb20..9f3010ad6 100644 --- a/src/modules/m_watch.cpp +++ b/src/modules/m_watch.cpp @@ -59,9 +59,9 @@ class CommandWatch final { // The away state should only be sent if the client requests away notifications for a nick but 2.0 always sends them so we do that too if (target->IsAway()) - user->WriteNumeric(RPL_NOWISAWAY, target->nick, target->ident, target->GetDisplayedHost(), (unsigned long)target->awaytime, "is away"); + user->WriteNumeric(RPL_NOWISAWAY, target->nick, target->ident, target->GetDisplayedHost(), target->awaytime, "is away"); else - user->WriteNumeric(RPL_NOWON, target->nick, target->ident, target->GetDisplayedHost(), (unsigned long)target->age, "is online"); + user->WriteNumeric(RPL_NOWON, target->nick, target->ident, target->GetDisplayedHost(), target->nickchanged, "is online"); } else if (show_offline) user->WriteNumeric(RPL_NOWOFF, nick, "*", "*", "0", "is offline"); @@ -94,7 +94,7 @@ class CommandWatch final User* target = IRCv3::Monitor::Manager::FindNick(nick); if (target) - user->WriteNumeric(RPL_WATCHOFF, target->nick, target->ident, target->GetDisplayedHost(), (unsigned long)target->age, "stopped watching"); + user->WriteNumeric(RPL_WATCHOFF, target->nick, target->ident, target->GetDisplayedHost(), target->nickchanged, "stopped watching"); else user->WriteNumeric(RPL_WATCHOFF, nick, "*", "*", "0", "stopped watching"); } @@ -198,12 +198,12 @@ private: void Online(User* user) { - SendAlert(user, user->nick, RPL_LOGON, "arrived online", user->age); + SendAlert(user, user->nick, RPL_LOGON, "arrived online", user->nickchanged); } void Offline(User* user, const std::string& nick) { - SendAlert(user, nick, RPL_LOGOFF, "went offline", user->age); + SendAlert(user, nick, RPL_LOGOFF, "went offline", user->nickchanged); } public: -- cgit v1.3.1-10-gc9f91