mirror of
https://github.com/anope/anope.git
synced 2026-07-07 23:03:13 +02:00
On startup check all object types
This commit is contained in:
@@ -35,6 +35,15 @@ void Serialize::RegisterTypes()
|
||||
memo("Memo", Memo::Unserialize), xline("XLine", XLine::Unserialize);
|
||||
}
|
||||
|
||||
void Serialize::CheckTypes()
|
||||
{
|
||||
for (std::map<Anope::string, Serialize::Type *>::const_iterator it = Serialize::Type::GetTypes().begin(), it_end = Serialize::Type::GetTypes().end(); it != it_end; ++it)
|
||||
{
|
||||
Serialize::Type *t = it->second;
|
||||
t->Check();
|
||||
}
|
||||
}
|
||||
|
||||
Serializable::Serializable(const Anope::string &serialize_type) : last_commit(0), last_commit_time(0), id(0)
|
||||
{
|
||||
if (SerializableItems == NULL)
|
||||
|
||||
Reference in New Issue
Block a user