diff options
Diffstat (limited to 'modules/chanserv/cs_set_misc.cpp')
-rw-r--r-- | modules/chanserv/cs_set_misc.cpp | 6 |
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; } } |