diff options
| author | 2024-03-08 18:45:27 +0000 | |
|---|---|---|
| committer | 2024-03-08 18:45:27 +0000 | |
| commit | 5bca4f169230318c539891b9be95b1ae22b87aaf (patch) | |
| tree | b332af8d203d382d51da45ff65e0859892791521 /src/extensible.cpp | |
| parent | Rename the sslfp extban to fingerprint. (diff) | |
| download | inspircd++-5bca4f169230318c539891b9be95b1ae22b87aaf.tar.gz inspircd++-5bca4f169230318c539891b9be95b1ae22b87aaf.tar.bz2 inspircd++-5bca4f169230318c539891b9be95b1ae22b87aaf.zip | |
Don't try to serialize extension items when they're being unset.
Diffstat (limited to 'src/extensible.cpp')
| -rw-r--r-- | src/extensible.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extensible.cpp b/src/extensible.cpp index 559a395c1..3bee0a48a 100644 --- a/src/extensible.cpp +++ b/src/extensible.cpp @@ -135,7 +135,7 @@ void* ExtensionItem::UnsetRaw(Extensible* container) void ExtensionItem::Sync(const Extensible* container, void* item) { - const std::string networkstr = ToNetwork(container, item); + const std::string networkstr = item ? ToNetwork(container, item) : ""; if (!networkstr.empty()) ServerInstance->PI->SendMetadata(container, name, networkstr); } |
