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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user