diff options
| author | 2021-12-14 16:56:48 +0000 | |
|---|---|---|
| committer | 2021-12-14 16:56:48 +0000 | |
| commit | e9d54724e6cf9ff3772795cf5eed4b259700214f (patch) | |
| tree | c7e06a9ca507df1db4eb5dc2e40a10da8198c086 /src/modules/m_spanningtree/main.cpp | |
| parent | Revert "Remove support for defaults in find_{compiler,linker}_flags()". (diff) | |
| parent | If a user has a unique username then include it in bans. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp index ef6ce73ed..93afcd237 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -848,6 +848,14 @@ void ModuleSpanningTree::OnShutdown(const std::string& reason) children.front()->SQuit(reason, true); } +void ModuleSpanningTree::OnDecodeMetaData(Extensible* target, const std::string& extname, const std::string& extdata) +{ + // HACK: this should use automatically synced user metadata in v4. + User* dest = static_cast<User*>(target); + if (dest && (extname == "uniqueusername")) + dest->uniqueusername = true; +} + Cullable::Result ModuleSpanningTree::Cull() { if (Utils) |
