diff options
| author | 2023-08-04 13:09:06 +0100 | |
|---|---|---|
| committer | 2023-08-04 13:14:49 +0100 | |
| commit | 635feb1a9a3ece8f06e1ad620b7b5a1eb21f8a44 (patch) | |
| tree | ad84709d188e70bf3e8aab74d85c59e40a711e12 /src/modules/m_spanningtree/main.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/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 704d23ac6..999effda6 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -828,15 +828,15 @@ void ModuleSpanningTree::OnDelLine(User* user, XLine* x) params.Broadcast(); } -void ModuleSpanningTree::OnUserAway(User* user) +void ModuleSpanningTree::OnUserAway(User* user, const std::optional<AwayState>& prevstate) { if (IS_LOCAL(user) && user->IsFullyConnected()) CommandAway::Builder(user).Broadcast(); } -void ModuleSpanningTree::OnUserBack(User* user, const std::string& message) +void ModuleSpanningTree::OnUserBack(User* user, const std::optional<AwayState>& prevstate) { - OnUserAway(user); + OnUserAway(user, prevstate); } void ModuleSpanningTree::OnMode(User* source, User* u, Channel* c, const Modes::ChangeList& modes, ModeParser::ModeProcessFlag processflags) |
