diff options
author | Sadie Powell <sadie@witchery.services> | 2023-07-11 12:19:47 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-07-11 12:19:47 +0100 |
commit | b7458c5da1dc952a29c39fc7c72cbde44ace004f (patch) | |
tree | 154f25bc6474b5e08f41ccd8dd74e7388ec370e2 /src | |
parent | 4a6f4bc92fbf447c2aea52df78814514e7e3d60b (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/access.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/access.cpp b/src/access.cpp index 68fd0777d..baa377a02 100644 --- a/src/access.cpp +++ b/src/access.cpp @@ -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; |