1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 22:56:39 +02:00

Store flags for memos, fixed the expiring very soon message, fixed /os session view when a session exception is added at a lower limit than th default

This commit is contained in:
Adam
2011-11-04 17:55:14 -04:00
parent 066e5b3fc0
commit a42cafbf69
4 changed files with 14 additions and 4 deletions
+3 -1
View File
@@ -20,9 +20,10 @@ SerializableBase::serialized_data Memo::serialize()
serialized_data data;
data["owner"] << this->owner;
data["time"] << this->time;
data["time"].setType(Serialize::DT_INT) << this->time;
data["sender"] << this->sender;
data["text"] << this->text;
data["flags"] << this->ToString();
return data;
}
@@ -42,6 +43,7 @@ void Memo::unserialize(SerializableBase::serialized_data &data)
data["time"] >> m->time;
data["sender"] >> m->sender;
data["text"] >> m->text;
m->FromString(data["flags"].astr());
mi->memos.push_back(m);
}