1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 04:36:37 +02:00

Allow access list entries to have a description.

This is useful when adding glob matches to the access list as a
reminder of who they actually match.

Resolves https://bugs.anope.org/view.php?id=1613
This commit is contained in:
Sadie Powell
2023-07-11 12:19:47 +01:00
parent 4a6f4bc92f
commit b7458c5da1
6 changed files with 28 additions and 13 deletions
+2
View File
@@ -211,6 +211,7 @@ void ChanAccess::Serialize(Serialize::Data &data) const
data["ci"] << this->ci->name;
data["mask"] << this->Mask();
data["creator"] << this->creator;
data["description"] << this->description;
data.SetType("last_seen", Serialize::Data::DT_INT); data["last_seen"] << this->last_seen;
data.SetType("created", Serialize::Data::DT_INT); data["created"] << this->created;
data["data"] << this->AccessSerialize();
@@ -238,6 +239,7 @@ Serializable* ChanAccess::Unserialize(Serializable *obj, Serialize::Data &data)
data["mask"] >> m;
access->SetMask(m, ci);
data["creator"] >> access->creator;
data["description"] >> access->description;
data["last_seen"] >> access->last_seen;
data["created"] >> access->created;