1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 10:23:13 +02:00

Rework the module headers to use namespaces and static services.

This commit is contained in:
Sadie Powell
2025-11-24 16:47:00 +00:00
parent 62ca6c96eb
commit be965f2618
65 changed files with 1054 additions and 864 deletions
+2 -2
View File
@@ -536,7 +536,7 @@ public:
if (cm)
{
/* Add it to the channels mlock */
ModeLocks *ml = ci->Require<ModeLocks>("modelocks");
auto *ml = ci->Require<ChanServ::ModeLocks>(CHANSERV_MODE_LOCK_EXT);
if (ml)
ml->SetMLock(cm, true, "", source.GetNick());
@@ -580,7 +580,7 @@ public:
if (cm)
{
/* Remove from mlock */
ModeLocks *ml = ci->GetExt<ModeLocks>("modelocks");
auto *ml = ci->GetExt<ChanServ::ModeLocks>(CHANSERV_MODE_LOCK_EXT);
if (ml)
ml->RemoveMLock(cm, true);