mirror of
https://github.com/anope/anope.git
synced 2026-07-05 12:03:12 +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:
@@ -30,7 +30,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
if (Config->GetModule("nickserv")->Get<bool>("nonicknameownership"))
|
||||
if (Config->GetModule("nickserv").Get<bool>("nonicknameownership"))
|
||||
{
|
||||
source.Reply(_("This command may not be used on this network because nickname ownership is disabled."));
|
||||
return;
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
}
|
||||
else if (param.equals_ci("IMMED"))
|
||||
{
|
||||
if (Config->GetModule(this->owner)->Get<bool>("allowkillimmed"))
|
||||
if (Config->GetModule(this->owner).Get<bool>("allowkillimmed"))
|
||||
{
|
||||
nc->Extend<bool>("KILLPROTECT");
|
||||
nc->Shrink<bool>("KILL_QUICK");
|
||||
|
||||
Reference in New Issue
Block a user