diff options
| author | 2021-12-20 11:01:59 +0000 | |
|---|---|---|
| committer | 2021-12-20 11:01:59 +0000 | |
| commit | 6d0c400a490068bc4d5169583f620dd5ee428746 (patch) | |
| tree | 1ba91504f5e9fc0c2371ad5af2d506fb3a6e1f69 /src/modules/m_spanningtree/main.cpp | |
| parent | Only show the tls cap if there is a TLS provider available. (diff) | |
Allow unsetting uniqueusername with metadata too.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index 5e30469e9..614c7cd83 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -808,7 +808,7 @@ void ModuleSpanningTree::OnDecodeMetaData(Extensible* target, const std::string& // HACK: this should use automatically synced user metadata in v4. User* dest = static_cast<User*>(target); if (dest && (extname == "uniqueusername")) - dest->uniqueusername = true; + dest->uniqueusername = (extdata != "0"); } CullResult ModuleSpanningTree::cull() |
