mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Make the length of confirmation codes configurable.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user