diff options
| author | 2023-01-25 03:43:40 +0000 | |
|---|---|---|
| committer | 2023-01-25 03:43:40 +0000 | |
| commit | 4472683dc7d321eaee30aae715a71b32342dffd4 (patch) | |
| tree | 71e136985e1b6b2e68f0fc7f2888e5f38eaa0d0e /src/coremods | |
| 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/coremods')
| -rw-r--r-- | src/coremods/core_channel/cmd_topic.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_channel/cmd_topic.cpp b/src/coremods/core_channel/cmd_topic.cpp index 8fae6a057..6492e6859 100644 --- a/src/coremods/core_channel/cmd_topic.cpp +++ b/src/coremods/core_channel/cmd_topic.cpp @@ -94,7 +94,7 @@ CmdResult CommandTopic::HandleLocal(LocalUser* user, const Params& parameters) } if (c->IsModeSet(topiclockmode)) { - ModResult MOD_RESULT = CheckExemption::Call(exemptionprov, user, c, "topiclock"); + ModResult MOD_RESULT = exemptionprov.Check(user, c, "topiclock"); if (!MOD_RESULT.check(c->GetPrefixValue(user) >= HALFOP_VALUE)) { user->WriteNumeric(Numerics::ChannelPrivilegesNeeded(c, HALFOP_VALUE, "change the topic")); |
