mirror of
https://github.com/anope/anope.git
synced 2026-07-05 03:33: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:
@@ -191,7 +191,7 @@ public:
|
||||
{
|
||||
if (keep_modes.HasExt(u->Account()))
|
||||
{
|
||||
const auto norestore = Config->GetModule(this)->Get<const Anope::string>("norestore");
|
||||
const auto norestore = Config->GetModule(this).Get<const Anope::string>("norestore");
|
||||
User::ModeList modes = u->Account()->last_modes;
|
||||
for (const auto &[last_mode, last_value] : modes)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user