diff options
| author | 2023-01-25 03:43:40 +0000 | |
|---|---|---|
| committer | 2023-01-25 03:43:40 +0000 | |
| commit | 4472683dc7d321eaee30aae715a71b32342dffd4 (patch) | |
| tree | 71e136985e1b6b2e68f0fc7f2888e5f38eaa0d0e /src/modules/m_auditorium.cpp | |
| parent | Fix using std::max instead of std::min when clamping NetBufferSize. (diff) | |
Move CheckExemption::Call to CheckExemption::EventProvider.
Now FirstResult not a macro there's no need for this to be a free
function.
Diffstat (limited to 'src/modules/m_auditorium.cpp')
| -rw-r--r-- | src/modules/m_auditorium.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 35ce62b1e..95cbb82eb 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -103,7 +103,7 @@ public: if (!memb->chan->IsModeSet(&aum)) return true; - ModResult res = CheckExemption::Call(exemptionprov, memb->user, memb->chan, "auditorium-vis"); + ModResult res = exemptionprov.Check(memb->user, memb->chan, "auditorium-vis"); return res.check(OpsVisible && memb->GetRank() >= OP_VALUE); } @@ -119,7 +119,7 @@ public: return true; // Can you see the list by permission? - ModResult res = CheckExemption::Call(exemptionprov, issuer, memb->chan, "auditorium-see"); + ModResult res = exemptionprov.Check(issuer, memb->chan, "auditorium-see"); return res.check(OpsCanSee && memb->chan->GetPrefixValue(issuer) >= OP_VALUE); } |
