From 40d558ef21a438bf1dff9ac522cd852166fc4c44 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 7 Apr 2025 12:27:45 +0100 Subject: Make the length of confirmation codes configurable. --- modules/chanserv/cs_drop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/chanserv') 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("channel-dropcode"); - *code = Anope::Random(15); + *code = Anope::Random(Config->GetBlock("options").Get("codelength", 15)); } source.Reply(CONFIRM_DROP, ci->name.c_str(), source.service->GetQueryCommand().c_str(), -- cgit