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/botserv/bs_kick.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/botserv') diff --git a/modules/botserv/bs_kick.cpp b/modules/botserv/bs_kick.cpp index 9f83e41b3..4fb781f5d 100644 --- a/modules/botserv/bs_kick.cpp +++ b/modules/botserv/bs_kick.cpp @@ -45,7 +45,7 @@ struct KickerDataImpl final void ExtensibleSerialize(const Extensible *e, const Serializable *s, Serialize::Data &data) const override { - if (s->GetSerializableType()->GetName() != "ChannelInfo") + if (s->GetSerializableType()->GetName() != CHANNELINFO_TYPE) return; const ChannelInfo *ci = anope_dynamic_static_cast(e); @@ -79,7 +79,7 @@ struct KickerDataImpl final void ExtensibleUnserialize(Extensible *e, Serializable *s, Serialize::Data &data) override { - if (s->GetSerializableType()->GetName() != "ChannelInfo") + if (s->GetSerializableType()->GetName() != CHANNELINFO_TYPE) return; ChannelInfo *ci = anope_dynamic_static_cast(e); -- cgit