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:
@@ -69,7 +69,7 @@ private:
|
||||
return;
|
||||
}
|
||||
|
||||
auto maxqueue = Config->GetModule(this->module)->Get<size_t>("maxqueue", "10");
|
||||
auto maxqueue = Config->GetModule(this->module).Get<size_t>("maxqueue", "10");
|
||||
if (global->CountQueue(source.nc) >= maxqueue)
|
||||
{
|
||||
source.Reply(_("You can not queue any more messages."));
|
||||
|
||||
Reference in New Issue
Block a user