summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_drop.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-04-07 12:27:45 +0100
committerSadie Powell <sadie@witchery.services>2025-04-07 12:27:45 +0100
commit40d558ef21a438bf1dff9ac522cd852166fc4c44 (patch)
tree24924f0a44364115042d4b52e476862a16057ce2 /modules/chanserv/cs_drop.cpp
parente1224ac4864d822d49ea8ecddca38d72f429c767 (diff)
Make the length of confirmation codes configurable.
Diffstat (limited to 'modules/chanserv/cs_drop.cpp')
-rw-r--r--modules/chanserv/cs_drop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/chanserv/cs_drop.cpp b/modules/chanserv/cs_drop.cpp
index fbde9fa5f..21e7fc44f 100644
--- a/modules/chanserv/cs_drop.cpp
+++ b/modules/chanserv/cs_drop.cpp
@@ -55,7 +55,7 @@ public:
if (!code)
{
code = ci->Extend<Anope::string>("channel-dropcode");
- *code = Anope::Random(15);
+ *code = Anope::Random(Config->GetBlock("options").Get<size_t>("codelength", 15));
}
source.Reply(CONFIRM_DROP, ci->name.c_str(), source.service->GetQueryCommand().c_str(),