diff options
| author | 2023-08-04 13:09:06 +0100 | |
|---|---|---|
| committer | 2023-08-04 13:14:49 +0100 | |
| commit | 635feb1a9a3ece8f06e1ad620b7b5a1eb21f8a44 (patch) | |
| tree | ad84709d188e70bf3e8aab74d85c59e40a711e12 /src/users.cpp | |
| parent | Fix an inverted condition in the DNSBL module. (diff) | |
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.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<ConnectClass>& 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<ConfigTag>& t) : config(std::make_shared<ConfigTag>("generated", FilePosition("<generated>", 0, 0))) , name(n) |
