aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-02-27 14:37:40 +0000
committerGravatar Sadie Powell2024-02-27 14:45:07 +0000
commitfd25fe3c4fd24faa6270c8805462cb2d50d8834a (patch)
tree29a7fb0927a1529b60621d635db5057549e56f11 /src/modules/m_spanningtree/main.cpp
parentSet a command access for the SVSHOLD command. (diff)
Send the real username as the second parameter to FIDENT.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 136001d91..c94076e82 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -594,7 +594,15 @@ void ModuleSpanningTree::OnChangeUser(User* user, const std::string& newuser)
if (!user->IsFullyConnected() || !IS_LOCAL(user))
return;
- CmdBuilder(user, "FIDENT").push(newuser).Broadcast();
+ CmdBuilder(user, "FIDENT").push(newuser).push("*").Broadcast();
+}
+
+void ModuleSpanningTree::OnChangeRealUser(User* user, const std::string& newuser)
+{
+ if (!user->IsFullyConnected() || !IS_LOCAL(user))
+ return;
+
+ CmdBuilder(user, "FIDENT").push("*").push(newuser).Broadcast();
}
void ModuleSpanningTree::OnUserPart(Membership* memb, std::string& partmessage, CUList& excepts)