diff options
| author | 2024-02-27 14:37:40 +0000 | |
|---|---|---|
| committer | 2024-02-27 14:45:07 +0000 | |
| commit | fd25fe3c4fd24faa6270c8805462cb2d50d8834a (patch) | |
| tree | 29a7fb0927a1529b60621d635db5057549e56f11 /src/modules/m_spanningtree/main.cpp | |
| parent | Set 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.cpp | 10 |
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) |
