From 64340dc50901f88336d9a2933dad98b462b6f36b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 14 Dec 2021 15:48:57 +0000 Subject: 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. --- src/modules/m_spanningtree/netburst.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/m_spanningtree/netburst.cpp') 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) { -- cgit v1.3.1-10-gc9f91