1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 22:13:13 +02:00

Import misc channel and user metadata in db_atheme.

This commit is contained in:
Sadie Powell
2025-03-07 12:31:42 +00:00
parent cccdf0431b
commit b30bfb5d2b
3 changed files with 37 additions and 1 deletions
+5 -1
View File
@@ -207,9 +207,13 @@ public:
descriptions[cname] = desc;
// Force creation of the extension item.
const auto extname = "cs_set_misc:" + GetAttribute(cname);
GetItem(extname);
auto numeric = block.Get<unsigned>("misc_numeric");
if (numeric >= 1 && numeric <= 999)
numerics["cs_set_misc:" + GetAttribute(cname)] = numeric;
numerics[extname] = numeric;
}
}