aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp11
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))