diff options
| author | 2022-01-31 20:17:48 +0000 | |
|---|---|---|
| committer | 2022-01-31 20:17:48 +0000 | |
| commit | 7c25da154eb5fbc4b736b533587a2850c7624ae7 (patch) | |
| tree | 177e0438860beb1cff38d969492e6b9a433b6670 /src/modules/m_spanningtree/main.cpp | |
| parent | Document aligned_storage and use alignment_of_v. (diff) | |
The target in OnDecodeMetaData can be nullptr sometimes.
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 98dda1800..e63d6322f 100644 --- a/src/modules/m_spanningtree/main.cpp +++ b/src/modules/m_spanningtree/main.cpp @@ -851,7 +851,7 @@ void ModuleSpanningTree::OnShutdown(const std::string& reason) void ModuleSpanningTree::OnDecodeMetaData(Extensible* target, const std::string& extname, const std::string& extdata) { // HACK: this should use automatically synced user metadata in v4. - if (target->extype == ExtensionType::USER && irc::equals(extname, "uniqueusername")) + if (target && target->extype == ExtensionType::USER && irc::equals(extname, "uniqueusername")) static_cast<User*>(target)->uniqueusername = (extdata != "0"); } |
