From 8b37cdb5d5ce61e375e70f1e4ab3429d66ef1ea0 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 17 Jun 2025 10:50:07 +0100 Subject: [PATCH] Make the access description more useful when importing from Atheme. --- modules/database/db_atheme.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/database/db_atheme.cpp b/modules/database/db_atheme.cpp index 50ceb83c7..477a5508b 100644 --- a/modules/database/db_atheme.cpp +++ b/modules/database/db_atheme.cpp @@ -625,6 +625,7 @@ private: return true; } + auto originalflags = flags; Anope::string accessflags; ApplyAccess(flags, 'A', accessflags, { "ACCESS_LIST" }); ApplyAccess(flags, 'a', accessflags, { "AUTOPROTECT", "PROTECT", "PROTECTME" }); @@ -647,7 +648,7 @@ private: auto *access = accessprov->Create(); access->SetMask(mask, ci); access->creator = setter; - access->description = "Imported from Atheme"; + access->description = "Imported from Atheme: " + flags; access->last_seen = modifiedtime; access->created = modifiedtime; access->AccessUnserialize(accessflags);