1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 22:03:13 +02:00

Add defines for the core serialisation type names.

This commit is contained in:
Sadie Powell
2025-03-12 14:20:43 +00:00
parent cdcf0e2f9a
commit e7b18609f6
12 changed files with 73 additions and 39 deletions
+2 -2
View File
@@ -1057,7 +1057,7 @@ class CSSet final
{
SerializableExtensibleItem<bool>::ExtensibleSerialize(e, s, data);
if (s->GetSerializableType()->GetName() != "ChannelInfo")
if (s->GetSerializableType()->GetName() != CHANNELINFO_TYPE)
return;
const ChannelInfo *ci = anope_dynamic_static_cast<const ChannelInfo *>(s);
@@ -1077,7 +1077,7 @@ class CSSet final
{
SerializableExtensibleItem<bool>::ExtensibleUnserialize(e, s, data);
if (s->GetSerializableType()->GetName() != "ChannelInfo")
if (s->GetSerializableType()->GetName() != CHANNELINFO_TYPE)
return;
ChannelInfo *ci = anope_dynamic_static_cast<ChannelInfo *>(s);