summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-12 14:20:43 +0000
committerSadie Powell <sadie@witchery.services>2025-03-12 15:53:52 +0000
commite7b18609f6141b7ad4acb1e233aebd2fd48d775f (patch)
tree8534b2e980b63e2a9fedb9c86183ab2673a6b303 /src/bots.cpp
parentcdcf0e2f9a8fb0e1c363fc65f71f3131fc6c5ea5 (diff)
Add defines for the core serialisation type names.
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index fa9042733..b01b7389f 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -18,12 +18,12 @@
#include "language.h"
#include "serialize.h"
-Serialize::Checker<botinfo_map> BotListByNick("BotInfo"), BotListByUID("BotInfo");
+Serialize::Checker<botinfo_map> BotListByNick(BOTINFO_TYPE), BotListByUID(BOTINFO_TYPE);
BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const Anope::string &nhost, const Anope::string &nreal, const Anope::string &bmodes)
: User(nnick, nuser, nhost, "", "", Me, nreal, Anope::CurTime, "", {}, IRCD ? IRCD->UID_Retrieve() : "", NULL)
- , Serializable("BotInfo")
- , channels("ChannelInfo")
+ , Serializable(BOTINFO_TYPE)
+ , channels(CHANNELINFO_TYPE)
, botmodes(bmodes)
{
this->lastmsg = this->created = Anope::CurTime;
@@ -85,7 +85,7 @@ BotInfo::~BotInfo()
}
BotInfo::Type::Type()
- : Serialize::Type("BotInfo")
+ : Serialize::Type(BOTINFO_TYPE)
{
}