1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Make the access description more useful when importing from Atheme.

This commit is contained in:
Sadie Powell
2025-06-17 10:50:07 +01:00
parent c5bff3a099
commit 8b37cdb5d5
+2 -1
View File
@@ -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);