diff options
| author | 2021-09-02 11:44:47 +0100 | |
|---|---|---|
| committer | 2021-09-02 11:45:23 +0100 | |
| commit | 3629e99c15a6ee5acd7d6015bc0b8fad1285b671 (patch) | |
| tree | 7fa5373c18589f2d27a3939e78859234dc47ba05 /src/modules/m_spanningtree/main.cpp | |
| parent | Release v4.0.0 alpha 4. (diff) | |
Add the FRHOST command to allow changing a remote user's real host.
Closes #1803.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index af0be49d3..8044a615f 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -75,6 +75,7 @@ SpanningTreeCommands::SpanningTreeCommands(ModuleSpanningTree* module) , fmode(module) , ftopic(module) , fhost(module) + , frhost(module) , fident(module) , fname(module) , away(module) @@ -543,7 +544,7 @@ void ModuleSpanningTree::OnUserJoin(Membership* memb, bool sync, bool created_by } } -void ModuleSpanningTree::OnChangeHost(User* user, const std::string &newhost) +void ModuleSpanningTree::OnChangeHost(User* user, const std::string& newhost) { if (user->registered != REG_ALL || !IS_LOCAL(user)) return; @@ -551,6 +552,14 @@ void ModuleSpanningTree::OnChangeHost(User* user, const std::string &newhost) CmdBuilder(user, "FHOST").push(newhost).Broadcast(); } +void ModuleSpanningTree::OnChangeRealHost(User* user, const std::string& newhost) +{ + if (user->registered != REG_ALL || !IS_LOCAL(user)) + return; + + CmdBuilder(user, "FRHOST").push(newhost).Broadcast(); +} + void ModuleSpanningTree::OnChangeRealName(User* user, const std::string& real) { if (user->registered != REG_ALL || !IS_LOCAL(user)) |
