diff options
| author | Sadie Powell <sadie@witchery.services> | 2025-03-12 14:20:43 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2025-03-12 15:53:52 +0000 |
| commit | e7b18609f6141b7ad4acb1e233aebd2fd48d775f (patch) | |
| tree | 8534b2e980b63e2a9fedb9c86183ab2673a6b303 /modules/botserv | |
| parent | cdcf0e2f9a8fb0e1c363fc65f71f3131fc6c5ea5 (diff) | |
Add defines for the core serialisation type names.
Diffstat (limited to 'modules/botserv')
| -rw-r--r-- | modules/botserv/bs_kick.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<const ChannelInfo *>(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<ChannelInfo *>(e); |
