1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 00:26:39 +02:00

Skip serializing data without a type in db_flatfile.

This commit is contained in:
Sadie Powell
2024-04-29 08:16:45 +01:00
parent d41764bfd6
commit 0c5bf51378
+2
View File
@@ -324,6 +324,8 @@ class DBFlatFile : public Module, public Pipe
{
Serializable *base = *it;
Serialize::Type *s_type = base->GetSerializableType();
if (!s_type)
continue;
data.fs = databases[s_type->GetOwner()];
if (!data.fs || !data.fs->is_open())