aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/netburst.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-14 15:48:57 +0000
committerGravatar Sadie Powell2021-12-14 15:48:57 +0000
commit64340dc50901f88336d9a2933dad98b462b6f36b (patch)
treee3512ff37a0ae8dd1b2c87a54382e6cf5325f49f /src/modules/m_spanningtree/netburst.cpp
parentAdd a build time check that OpenLDAP is reentrant. (diff)
Sync uniqueusername from the connect class to the user.
This is a massive hack for now but should be made to sync properly in v4 when we have extensibles that don't suck.
Diffstat (limited to 'src/modules/m_spanningtree/netburst.cpp')
-rw-r--r--src/modules/m_spanningtree/netburst.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/netburst.cpp b/src/modules/m_spanningtree/netburst.cpp
index 227e9667c..931d5b0ff 100644
--- a/src/modules/m_spanningtree/netburst.cpp
+++ b/src/modules/m_spanningtree/netburst.cpp
@@ -296,6 +296,9 @@ void TreeSocket::SendUsers(BurstState& bs)
if (user->IsAway())
this->WriteLine(CommandAway::Builder(user));
+ if (user->uniqueusername) // TODO: convert this to BooleanExtItem in v4.
+ this->WriteLine(CommandMetadata::Builder(user, "uniqueusername", "1"));
+
const Extensible::ExtensibleStore& exts = user->GetExtList();
for (Extensible::ExtensibleStore::const_iterator i = exts.begin(); i != exts.end(); ++i)
{