mirror of
https://github.com/anope/anope.git
synced 2026-06-30 10:56:38 +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
-11
@@ -140,7 +140,7 @@ void NickAlias::Serialize(Serialize::Data &data) const
|
||||
data.SetType("time_registered", Serialize::Data::DT_INT); data["time_registered"] << this->time_registered;
|
||||
data.SetType("time_registered", Serialize::Data::DT_INT); data["last_seen"] << this->last_seen;
|
||||
data["nc"] << this->nc->display;
|
||||
this->ExtensibleSerialize(data);
|
||||
Extensible::ExtensibleSerialize(this, this, data);
|
||||
|
||||
if (this->HasVhost())
|
||||
{
|
||||
@@ -189,7 +189,7 @@ Serializable* NickAlias::Unserialize(Serializable *obj, Serialize::Data &data)
|
||||
data["last_realhost"] >> na->last_realhost;
|
||||
data["time_registered"] >> na->time_registered;
|
||||
data["last_seen"] >> na->last_seen;
|
||||
na->ExtensibleUnserialize(data);
|
||||
Extensible::ExtensibleUnserialize(na, na, data);
|
||||
|
||||
Anope::string vhost_ident, vhost_host, vhost_creator;
|
||||
time_t vhost_time;
|
||||
@@ -201,15 +201,6 @@ Serializable* NickAlias::Unserialize(Serializable *obj, Serialize::Data &data)
|
||||
|
||||
na->SetVhost(vhost_ident, vhost_host, vhost_creator, vhost_time);
|
||||
|
||||
/* Compat */
|
||||
Anope::string sflags;
|
||||
data["flags"] >> sflags;
|
||||
spacesepstream sep(sflags);
|
||||
Anope::string tok;
|
||||
while (sep.GetToken(tok))
|
||||
na->ExtendMetadata(tok);
|
||||
/* End compat */
|
||||
|
||||
return na;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user