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

Be more specific in the generator field in db_json.

This commit is contained in:
Sadie Powell
2025-05-11 17:16:35 +01:00
parent 41e702d853
commit 7c5d2c09fa
+1 -1
View File
@@ -262,7 +262,7 @@ private:
static void UpdateMetadata(yyjson_mut_doc *doc, yyjson_mut_val *obj)
{
const auto generator = "Anope " + Anope::Version();
const auto generator = "Anope " + Anope::Version() + " " + Anope::VersionBuildString();
yyjson_mut_obj_upsert(doc, obj, "generator", yyjson_mut_strncpy(doc, generator.c_str(), generator.length()));
yyjson_mut_obj_upsert(doc, obj, "version", yyjson_mut_uint(doc, ANOPE_DATABASE_VERSION));
yyjson_mut_obj_upsert(doc, obj, "updated", yyjson_mut_int(doc, Anope::CurTime));