From 9203f40f41e4a735d379d13867d277c696fb28c5 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 3 Sep 2022 22:52:53 +0100 Subject: Fix some warnings noticed by the readability-* clang-tidy checkers. --- src/modules/m_ircv3_capnotify.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/modules/m_ircv3_capnotify.cpp') diff --git a/src/modules/m_ircv3_capnotify.cpp b/src/modules/m_ircv3_capnotify.cpp index 9a06189fa..0706ba88b 100644 --- a/src/modules/m_ircv3_capnotify.cpp +++ b/src/modules/m_ircv3_capnotify.cpp @@ -28,9 +28,7 @@ class CapNotify final bool OnRequest(LocalUser* user, bool add) override { // Users using the negotiation protocol v3.2 or newer may not turn off cap-notify - if ((!add) && (GetProtocol(user) != Cap::CAP_LEGACY)) - return false; - return true; + return add || GetProtocol(user) == Cap::CAP_LEGACY; } bool OnList(LocalUser* user) override -- cgit v1.3.1-10-gc9f91