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/uid.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/uid.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/uid.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp index dec0d7505..cfaea59ed 100644 --- a/src/modules/m_spanningtree/uid.cpp +++ b/src/modules/m_spanningtree/uid.cpp @@ -163,7 +163,12 @@ CmdResult CommandFRHost::HandleRemote(RemoteUser* src, Params& params) CmdResult CommandFIdent::HandleRemote(RemoteUser* src, Params& params) { - src->ChangeDisplayedUser(params[0]); + if (params[0] != "*") + src->ChangeDisplayedUser(params[0]); + + if (params[1] != "*") + src->ChangeRealUser(params[1], false); + return CmdResult::SUCCESS; } |
