aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/uid.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-07-20 12:31:31 +0100
committerGravatar Sadie Powell2024-07-20 12:33:37 +0100
commit42fdbb7234628ff95acdb6f3f1d1d2206ad77334 (patch)
treea8f3bb09c880d96f886f8a44f4bb0b7119922022 /src/modules/m_spanningtree/uid.cpp
parentImplement support for the IRCv3 WebSocket subprotocol names. (diff)
Fix broadcasting UID messages to v3 servers.
We have to use the compat layer here as broadcast messages do not go through the command builder.
Diffstat (limited to 'src/modules/m_spanningtree/uid.cpp')
-rw-r--r--src/modules/m_spanningtree/uid.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/uid.cpp b/src/modules/m_spanningtree/uid.cpp
index 57a126933..8425984fb 100644
--- a/src/modules/m_spanningtree/uid.cpp
+++ b/src/modules/m_spanningtree/uid.cpp
@@ -177,7 +177,7 @@ CmdResult CommandFName::HandleRemote(RemoteUser* src, Params& params)
return CmdResult::SUCCESS;
}
-CommandUID::Builder::Builder(User* user, bool real_user)
+CommandUID::Builder::Builder(User* user)
: CmdBuilder(TreeServer::Get(user), "UID")
{
push(user->uuid);
@@ -185,8 +185,7 @@ CommandUID::Builder::Builder(User* user, bool real_user)
push(user->nick);
push(user->GetRealHost());
push(user->GetDisplayedHost());
- if (real_user)
- push(user->GetRealUser());
+ push(user->GetRealUser());
push(user->GetDisplayedUser());
push(user->GetAddress());
push_int(user->signon);