mirror of
https://github.com/anope/anope.git
synced 2026-07-10 06:03:14 +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:
@@ -77,7 +77,7 @@ private:
|
||||
*
|
||||
* Rob
|
||||
**/
|
||||
bool super_admin = Config->GetModule(this->owner)->Get<bool>("superadmin");
|
||||
bool super_admin = Config->GetModule(this->owner).Get<bool>("superadmin");
|
||||
if (!super_admin)
|
||||
source.Reply(_("Super admin can not be set because it is not enabled in the configuration."));
|
||||
else if (setting.equals_ci("ON"))
|
||||
|
||||
Reference in New Issue
Block a user