aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_auditorium.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-09-03 22:52:53 +0100
committerGravatar Sadie Powell2022-09-03 23:17:05 +0100
commit9203f40f41e4a735d379d13867d277c696fb28c5 (patch)
tree93a171344e801b44918229fdd6b8778293ab88aa /src/modules/m_auditorium.cpp
parentFix some warnings noticed by the bugprone-* clang-tidy checkers. (diff)
Fix some warnings noticed by the readability-* clang-tidy checkers.
Diffstat (limited to 'src/modules/m_auditorium.cpp')
-rw-r--r--src/modules/m_auditorium.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp
index a7b3d0804..566171fe5 100644
--- a/src/modules/m_auditorium.cpp
+++ b/src/modules/m_auditorium.cpp
@@ -118,10 +118,7 @@ public:
// Can you see the list by permission?
ModResult res = CheckExemption::Call(exemptionprov, issuer, memb->chan, "auditorium-see");
- if (res.check(OpsCanSee && memb->chan->GetPrefixValue(issuer) >= OP_VALUE))
- return true;
-
- return false;
+ return res.check(OpsCanSee && memb->chan->GetPrefixValue(issuer) >= OP_VALUE);
}
ModResult OnNamesListItem(LocalUser* issuer, Membership* memb, std::string& prefixes, std::string& nick) override