summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_set_misc.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-03-07 12:31:42 +0000
committerSadie Powell <sadie@witchery.services>2025-03-07 12:31:42 +0000
commitb30bfb5d2b926fccd72dac7481486b66e203f2b7 (patch)
treebe2b5459c1397218f2a856d265ec9a8aaed83036 /modules/chanserv/cs_set_misc.cpp
parentcccdf0431bd755ab927ce434458b831c58bc7244 (diff)
Import misc channel and user metadata in db_atheme.
Diffstat (limited to 'modules/chanserv/cs_set_misc.cpp')
-rw-r--r--modules/chanserv/cs_set_misc.cpp6
1 files changed, 5 insertions, 1 deletions
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<unsigned>("misc_numeric");
if (numeric >= 1 && numeric <= 999)
- numerics["cs_set_misc:" + GetAttribute(cname)] = numeric;
+ numerics[extname] = numeric;
}
}