mirror of
https://github.com/anope/anope.git
synced 2026-06-28 18:36:39 +02:00
Change extensible keys to require explicitly having a type defined for it. Completely modularize more features like bs_kick, entrymsg, log, mode, etc. Move fantasy to its own module. Move greet to its own module.
This commit is contained in:
+2
-2
@@ -80,7 +80,7 @@ void BotInfo::Serialize(Serialize::Data &data) const
|
||||
data["created"] << this->created;
|
||||
data["oper_only"] << this->oper_only;
|
||||
|
||||
this->ExtensibleSerialize(data);
|
||||
Extensible::ExtensibleSerialize(this, this, data);
|
||||
}
|
||||
|
||||
Serializable* BotInfo::Unserialize(Serializable *obj, Serialize::Data &data)
|
||||
@@ -101,7 +101,7 @@ Serializable* BotInfo::Unserialize(Serializable *obj, Serialize::Data &data)
|
||||
data["created"] >> bi->created;
|
||||
data["oper_only"] >> bi->oper_only;
|
||||
|
||||
bi->ExtensibleUnserialize(data);
|
||||
Extensible::ExtensibleUnserialize(bi, bi, data);
|
||||
|
||||
return bi;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user