1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 10:43: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:
Sadie Powell
2025-03-02 14:51:02 +00:00
parent a5e5eb5eb0
commit f9911dde52
124 changed files with 811 additions and 809 deletions
+2 -2
View File
@@ -155,7 +155,7 @@ private:
source.Reply(_("You are not permitted to change your memo limit."));
return;
}
int max_memos = Config->GetModule("memoserv")->Get<int>("maxmemos");
int max_memos = Config->GetModule("memoserv").Get<int>("maxmemos");
limit = Anope::Convert<int16_t>(p1, -1);
/* The first character is a digit, but we could still go negative
@@ -255,7 +255,7 @@ public:
"\002ON\002 is essentially \002LOGON\002 and \002NEW\002 combined."));
else if (subcommand.equals_ci("LIMIT"))
{
int max_memos = Config->GetModule("memoserv")->Get<int>("maxmemos");
int max_memos = Config->GetModule("memoserv").Get<int>("maxmemos");
if (source.IsServicesOper())
source.Reply(_("Syntax: \002LIMIT [\037user\037 | \037channel\037] {\037limit\037 | NONE} [HARD]\002\n"
" \n"