mirror of
https://github.com/anope/anope.git
synced 2026-07-04 05:33:12 +02:00
Add defines for the core serialisation type names.
This commit is contained in:
@@ -119,7 +119,7 @@ private:
|
||||
{
|
||||
SerializableExtensibleItem<bool>::ExtensibleSerialize(e, s, data);
|
||||
|
||||
if (s->GetSerializableType()->GetName() != "NickCore")
|
||||
if (s->GetSerializableType()->GetName() != NICKCORE_TYPE)
|
||||
return;
|
||||
|
||||
const NickCore *nc = anope_dynamic_static_cast<const NickCore *>(s);
|
||||
@@ -139,7 +139,7 @@ private:
|
||||
{
|
||||
SerializableExtensibleItem<bool>::ExtensibleUnserialize(e, s, data);
|
||||
|
||||
if (s->GetSerializableType()->GetName() != "NickCore")
|
||||
if (s->GetSerializableType()->GetName() != NICKCORE_TYPE)
|
||||
return;
|
||||
|
||||
NickCore *nc = anope_dynamic_static_cast<NickCore *>(s);
|
||||
|
||||
Reference in New Issue
Block a user