From e7b18609f6141b7ad4acb1e233aebd2fd48d775f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 12 Mar 2025 14:20:43 +0000 Subject: Add defines for the core serialisation type names. --- modules/chanserv/cs_set.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/chanserv') diff --git a/modules/chanserv/cs_set.cpp b/modules/chanserv/cs_set.cpp index 0fb18cdaa..c2298e68a 100644 --- a/modules/chanserv/cs_set.cpp +++ b/modules/chanserv/cs_set.cpp @@ -1057,7 +1057,7 @@ class CSSet final { SerializableExtensibleItem::ExtensibleSerialize(e, s, data); - if (s->GetSerializableType()->GetName() != "ChannelInfo") + if (s->GetSerializableType()->GetName() != CHANNELINFO_TYPE) return; const ChannelInfo *ci = anope_dynamic_static_cast(s); @@ -1077,7 +1077,7 @@ class CSSet final { SerializableExtensibleItem::ExtensibleUnserialize(e, s, data); - if (s->GetSerializableType()->GetName() != "ChannelInfo") + if (s->GetSerializableType()->GetName() != CHANNELINFO_TYPE) return; ChannelInfo *ci = anope_dynamic_static_cast(s); -- cgit