mirror of
https://github.com/anope/anope.git
synced 2026-06-25 21:26: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:
+1
-1
@@ -222,7 +222,7 @@ namespace
|
||||
void HandleUnknownCommand(CommandSource& source, const Anope::string &message)
|
||||
{
|
||||
// Try to find a similar command.
|
||||
size_t distance = Config->GetBlock("options")->Get<size_t>("didyoumeandifference", "4");
|
||||
size_t distance = Config->GetBlock("options").Get<size_t>("didyoumeandifference", "4");
|
||||
Anope::string similar;
|
||||
auto umessage = message.upper();
|
||||
for (const auto &[command, info] : source.service->commands)
|
||||
|
||||
Reference in New Issue
Block a user