From b30bfb5d2b926fccd72dac7481486b66e203f2b7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 7 Mar 2025 12:31:42 +0000 Subject: Import misc channel and user metadata in db_atheme. --- modules/chanserv/cs_set_misc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/chanserv') diff --git a/modules/chanserv/cs_set_misc.cpp b/modules/chanserv/cs_set_misc.cpp index 01a5b90b7..4439589a8 100644 --- a/modules/chanserv/cs_set_misc.cpp +++ b/modules/chanserv/cs_set_misc.cpp @@ -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("misc_numeric"); if (numeric >= 1 && numeric <= 999) - numerics["cs_set_misc:" + GetAttribute(cname)] = numeric; + numerics[extname] = numeric; } } -- cgit