From 635feb1a9a3ece8f06e1ad620b7b5a1eb21f8a44 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 4 Aug 2023 13:09:06 +0100 Subject: Rework how away state is stored internally. This will be necessary for implementing pre-away as well as some changes for WATCH compatibility with Unreal. --- src/users.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index c901709d2..c78ae6de6 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1153,6 +1153,12 @@ void ConnectClass::Update(const std::shared_ptr& src) uniqueusername = src->uniqueusername; } +AwayState::AwayState(const std::string& m, time_t t) + : message(m, 0, ServerInstance->Config->Limits.MaxAway) + , time(t ? t : ServerInstance->Time()) +{ +} + OperType::OperType(const std::string& n, const std::shared_ptr& t) : config(std::make_shared("generated", FilePosition("", 0, 0))) , name(n) -- cgit v1.3.1-10-gc9f91