mirror of
https://github.com/anope/anope.git
synced 2026-06-27 22:56:38 +02:00
Return references instead of pointers from the config system.
We used to return NULL from these methods but now we return an empty block so this can never actually be null now.
This commit is contained in:
@@ -165,11 +165,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void OnReload(Configuration::Conf *conf) override
|
||||
void OnReload(Configuration::Conf &conf) override
|
||||
{
|
||||
auto *block = conf->GetModule(this);
|
||||
auto &block = conf.GetModule(this);
|
||||
|
||||
auto rounds = block->Get<unsigned long>("rounds", "10");
|
||||
auto rounds = block.Get<unsigned long>("rounds", "10");
|
||||
if (rounds < 10 || rounds > 32)
|
||||
{
|
||||
Log(this) << "Bcrypt rounds MUST be between 10 and 32 inclusive; using 10 instead of " << rounds << '.';
|
||||
|
||||
Reference in New Issue
Block a user