summaryrefslogtreecommitdiff
path: root/modules/chanserv/cs_drop.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-05-15 01:42:13 +0100
committerSadie Powell <sadie@witchery.services>2025-05-15 01:42:13 +0100
commita0e98acea8fee1cf6d7ac510c920d45612273ac0 (patch)
treed51f092ce39185663f0ef78a1e2b7ef44100b9df /modules/chanserv/cs_drop.cpp
parentc5a2f4066626228cf3720ce9c8ce33f03b4ac04d (diff)
Fix the codelength default.
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 3159bb5e1..ba7ba6371 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(Config->GetBlock("options").Get<size_t>("codelength", 15));
+ *code = Anope::Random(Config->GetBlock("options").Get<size_t>("codelength", "15"));
}
source.Reply(CONFIRM_DROP, ci->name.c_str(), source.service->GetQueryCommand("chanserv/drop").c_str(),